Just found out that I don't need content providers if I don't need to share data with other applications. But since the examples I've seen all use content providers, I'm not sure how to proceed without them and populate activities with data derived from accessing my application's database directly.
3 Answers
The Notepad Tutorial in the Android Developer Documentation shows how to access a SQLite database "directly".
-
You're right. Was aware of the tutorial but thought it was the same implementation as the one included with the SDK (which uses ContentProvider) Thanks! Commented Sep 3, 2010 at 17:28
The LunchList application built up in Android Programming Tutorials does not use a ContentProvider
(particularly look at tutorial #11). Neither does this sample app.
You can use SQLiteDatabse example for this because if you don't want to use Content Provider.but Sqlitedatabase is private and not accessible to another Application.
so you can refers following link:http://www.vogella.com/articles/AndroidSQLite/