会是怎样的URI SQLite数据库是在SD卡中CursorLoader [英] what will be uri for Sqlite database which is in SDCARD in CursorLoader

查看:153
本文介绍了会是怎样的URI SQLite数据库是在SD卡中CursorLoader的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的Andr​​oid和我已经看了这么多东西的最佳方式来加载从Sqlitedatabase数据,并从阅读亚历克斯·洛克伍德的博客。我终于决定去与CursorLoader和放大器; LoaderManager。

I am new to android and i have read so many things for best way to load data from an Sqlitedatabase, and from reading blog of Alex Lockwood. I finally decided to go with CursorLoader & LoaderManager.

我的问题是,很多人想读数据,而无需ContentProvider的<一个href="http://stackoverflow.com/questions/7182485/usage-cursorloader-without-contentprovider?lq=1">Usage CursorLoader没有的ContentProvider 不知道为什么他们不希望使用ContentProvider的任何机构可以建议我?

My problem is that many people want to read data without ContentProvider Usage CursorLoader without ContentProvider do not know why they don't want to use ContentProvider can any body suggest me?

如果ContentProvider的比我只想让URI外部数据库的最佳解决方案。请,任何机构知道如何使这是驻留在SD卡外部数据库?我想获取该数据库的URI或如果我把我的数据库/数据/数据​​/软件包名/数据库/那我该怎么取呢?请,任何机构知道的比给我建议。

If contentprovider is best solution than i just want to make URI for external database. Please, any body know how to make external database which is reside in sdcard? I want to fetch uri of that database or if i put my database in /data/data/packagename/databases/ then how can i fetch it? Please, any body know than suggest me.

推荐答案

Kinjal可能是你并不需要一个供应商使用SQLite数据库,如果使用是完全属于你自己的应用程序。

Kinjal may be You don't need a provider to use an SQLite database if the use is entirely within your own application.

这表明,在Android开发者网站只是清洁香港它的http://developer.android.com/guide/topics/providers/content-provider-creating.html

it suggest in android developer site just chk it http://developer.android.com/guide/topics/providers/content-provider-creating.html

这篇关于会是怎样的URI SQLite数据库是在SD卡中CursorLoader的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆