0

How can i attach the **database to my activity that i have created in sqlite database browser. and can i write queries in sqlite database browser and will it run in my activity

  • 1
    Read the documentation and the examples at the developer site. http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html By the way, best practice is not to run database queries in your UI thread. Use a CursorLoader. http://developer.android.com/reference/android/content/CursorLoader.html – King Skippus Jul 04 '12 at 21:02
  • http://stackoverflow.com/questions/9109438/using-already-created-database-with-android/9109728#9109728 – Yaqub Ahmad Jul 05 '12 at 04:06

1 Answers1

0

See my answer in the following link. I think it will fully solve your problem.

Populating SQLite Database

Community
  • 1
  • 1
ayon
  • 2,180
  • 2
  • 17
  • 32