English 中文(简体)
能否在安康使用内容提供器和直接数据查询数据库?
原标题:Is it possible to use ContentProvider and direct data access to Database in Android?

我应用direct数据检索数据库。 我别无其他申请。 正如科斯瓦雷在SO上说的,“如果你没有发现——不使用内容提供人”。 现在,我想补充一下,在数据库中储存的一张表格中显示两条插图。 我是否应当支持<>直接准入代码到ContentProvider上? 是否有办法直接利用植被数据库? 有没有办法让内容提供商和直接使用数据库。

最佳回答

现在,我想补充一下,在数据库中储存的一张表格中显示两条插图。

I am going to assume that by "widget" you really mean "app widget".

我是否应当使直接准入法符合内容提供人的模式?

You do not have to do this just because you are writing an app widget.

是否有办法直接利用植被数据库?

在你看来,使用你在任何地方使用同样的机制。

Is there a way to have both ContentProvider and direct access to database in one application?

是的,尽管你必须小心谨慎,确保你在这两种情况下都使用同样的<代码>SQLiteDatabase标的,但你不会陷入深层的问题。

问题回答

暂无回答




相关问题
what is wrong with this mysql code

$db_user="root"; $db_host="localhost"; $db_password="root"; $db_name = "fayer"; $conn = mysqli_connect($db_host,$db_user,$db_password,$db_name) or die ("couldn t connect to server"); // perform query ...

Users asking for denormalized database

I am in the early stages of developing a database-driven system and the largest part of the system revolves around an inheritance type of relationship. There is a parent entity with about 10 columns ...

Easiest way to deal with sample data in Java web apps?

I m writing a Java web app in my free time to learn more about development. I m using the Stripes framework and eventually intend to use hibernate and MySQL For the moment, whilst creating the pages ...

join across databases with nhibernate

I am trying to join two tables that reside in two different databases. Every time, I try to join I get the following error: An association from the table xxx refers to an unmapped class. If the ...

How can I know if such value exists in database? (ADO.NET)

For example, I have a table, and there is a column named Tags . I want to know if value programming exists in this column. How can I do this in ADO.NET? I did this: OleDbCommand cmd = new ...

Convert date to string upon saving a doctrine record

I m trying to migrate one of my PHP projects to Doctrine. I ve never used it before so there are a few things I don t understand. In my current code, I have a class similar to this: class ...

热门标签