I guess by pre-entered you mean that you created a SQLite database
populated with data somewhere else (like your development system).
You can add the database file to your application (res/raw or
res/assets), then at runtime, first time the application is run, copy
that file into your application's data directory (call
Context.getDatabasePath to gets target file location).
After that, your application can open the database as usual.
Make sure you don't use any features of SQLite that are more recent than
the version in Android.
-- Kostya
20.12.2010 19:09, Mystique пишет:
Hi,
I want to create a SQlite db with pre-entered data so I can load them
into a listview. How can this be done?
Many thanks,
CJ
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
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