sqlite database help
I have some questions regarding database in android.
In my project, I would like to create a database with single table. I would also like to insert data on this table from word or excel document. is it possible? if so please how can I do it? some code snippets would be of great help.
I have four different activities which I would like them to interact with this single table. the first is the main activity and its purpose is just to launch the other three activities according to user choice. so it has no interaction with the DB. but the other three activities will read from the table whenever called. Can you please tell me how to call the dbhelper on these activities? I am unable to do this and I am c开发者_如何学运维urrently creating one db per each activity which is not the optimal way.
See the Notepad Tutorial on interacting with a database in Android, it is a complete sample application with explanations.
精彩评论