Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does reinstallation of app delete SQLiteDatabase or SharedPreferences

I wanted to know whether reinstallation of app deletes SQLiteDatabase or SharedPreferences in Android. Also under what circumstances does it gets deleted. Application will be downloaded from server & installed. If it does get deleted what should we do to take a backup & restore it again?

Please help...

like image 702
Osama Mohammed Shaikh Avatar asked Dec 07 '22 03:12

Osama Mohammed Shaikh


1 Answers

No... Database and SharedPreferences will not be deleted if one reinstall the app. They get deleted when some one uninstall it or clear data from settings menu of device...

like image 60
Looking Forward Avatar answered Dec 10 '22 11:12

Looking Forward