CursorLoader, get URI for local database

Posted by user1681358 on Stack Overflow See other posts from Stack Overflow or by user1681358
Published on 2012-09-18T21:36:26Z Indexed on 2012/09/18 21:37 UTC
Read the original article Hit count: 193

I'm a newbie android programmer and I recently followed a tutorial which shows how to create a local SQLite database by using SQLiteDatabase.rawQuery to return a Cursor. I would like to modify my app to use CursorLoader which is apparently a better way to access the database. My problem is the CursorLoader constructor expects a URI to be given. Do I just input "file:///[path to db]"? Seems a bit messy.

© Stack Overflow or respective owner

Related posts about android

Related posts about sqlite