开发者

sqlite database help

开发者 https://www.devze.com 2022-12-31 12:12 出处:网络
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. i

I have some questions regarding database in android.

  1. 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.

  2. 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消