0

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.

1
  • Where is your application's database? on the same device or remote database accessible via internet/intranet?
    – Akash Kava
    Commented Sep 2, 2010 at 7:53

3 Answers 3

2

The Notepad Tutorial in the Android Developer Documentation shows how to access a SQLite database "directly".

1
  • 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!
    – Julian A.
    Commented Sep 3, 2010 at 17:28
2

The LunchList application built up in Android Programming Tutorials does not use a ContentProvider (particularly look at tutorial #11). Neither does this sample app.

1
  • Checked it out. Great resource. Thanks!
    – Julian A.
    Commented Sep 3, 2010 at 17:26
0

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/

Not the answer you're looking for? Browse other questions tagged or ask your own question.