About Sqlite database

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

About Sqlite database

Postby kums » Tue Nov 24, 2009 11:34 am


i have used sqlite database in my application.

if i uninstall my application,the database also deleted.

But i want to need same database with same values(even uninstall my app)

How can i achieve this? Is this possible?

please help me.
Posts: 8
Joined: Wed Nov 18, 2009 8:50 am


Postby divestoclimb » Tue Nov 24, 2009 7:37 pm

If you save your database on the SD card, you can do that. I don't think there's any other way.

Depending on what you are trying to achieve, you could also break out your database into a separate app accessible by a ContentProvider. Then when your main app is uninstalled the data stays. This would, however, require the user to install two apps and if they uninstalled the one with the ContentProvider the data would still be deleted.
divestoclimb - Android SCUBA app developer
Android Community | Gas Mixer, ScubaLib, Scuba Tanks | d2c Checklist
All code is open source under Apache license.
Posts: 33
Joined: Mon May 11, 2009 7:46 pm


Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 1 guest