开发者

how to copy sqlite database when installing android application

开发者 https://www.devze.com 2023-03-25 08:18 出处:网络
I am using sqlite database in my application,i want to copy this sqlitedatabase file when creating apk file and paste on mobile during the installation of the application.Is there any packaging optio开

I am using sqlite database in my application,i want to copy this sqlitedatabase file when creating apk file and paste on mobile during the installation of the application.Is there any packaging optio开发者_如何学Pythonns to do this ?

Thanks in advance


Ragu, there is a broadcast that occurs when installing apps from the market place but since you are installing your app, the event obviously doesn't get received by your app. Copy the database file to your assets folder and on the first invocation of the application, you might be able to copy the file from your asset folder into internal storage.

0

精彩评论

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