开发者

How to package my android app with a database

开发者 https://www.devze.com 2023-01-30 05:29 出处:网络
I\'ve already created an android application tha开发者_Go百科t has got an already existing sqlite 3 database within it\'s asset\'s folder. I designed the application to copy the database on to the mob

I've already created an android application tha开发者_Go百科t has got an already existing sqlite 3 database within it's asset's folder. I designed the application to copy the database on to the mobile when the app is launched for the first time. My question is how can I ship the database and the app so that users can easily install the app?

thanks


The method I'm going to show you takes your own SQLite database file from the "assets" folder and copies into the system database path of your application so the SQLiteDatabase API can open and access it normally.

Have a look here : Using your own sqlite database in your Android applications

0

精彩评论

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