Hi, I'm planning on going down the path of making a SQLiteLoader.
The question I have is how do I access the LoaderManager. I have a ListActivity and have the compatibility library set up, but can't figure out how to initialise my loader. Regards, Julius. On 21/07/2011, at 5:10 AM, Mark Murphy wrote: > On Wed, Jul 20, 2011 at 12:59 PM, Julius Spencer <[email protected]> wrote: >> The CursorLoader documentation describes itself as: >> "A loader that queries the ContentResolver and returns a Cursor." >> >> Does anyone know if it's possible to use a CursorLoader for an application's >> SQLiteDatabase? > > It should be possible to use the Loader framework. CursorLoader is for > content providers. We'd need a SQLiteLoader for a local database. > Writing that is on my to-do list, before I cover loaders anywhere in > my books. Not quite sure when I'm going to get around to that, > though... > >> Do I have to make the database a Content Provider so I can provide a Uri? > > If you wish to use CursorLoader, yes. > >> If I do, can a Content Provider be private to the application (ie. not >> accessible to other applications on the device)? > > Yes. Make sure you have android:exported="false" in the <provider> > element -- by default, providers are exported. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://github.com/commonsguy > http://commonsware.com/blog | http://twitter.com/commonsguy > > Android Training...At Your Office: http://commonsware.com/training > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

