I wanted to know if reinstalling the application removes SQLiteDatabase or SharedPreferences in Android. Also under what circumstances is he removed. The application will be downloaded from the server and installed. If it is deleted, what should I do to make a backup and restore it again?
Please, help...
No ... The database and SharedPreferences will not be deleted if you reinstall the application. They are deleted when some delete it or clear data from the device settings menu ...
( ) , . , , .
Android Debug Bridge , -r (adb install your.apk/adb install -r your.apk)
adb install your.apk
adb install -r your.apk
SharedPreferences SQLiteDatabase ,
SharedPreferences
SQLiteDatabase
SharedPreferences SQLiteDatabase, , BackupAgentHelper . SharedPreferenceBackupHelper SharedPreferences SQLiteDatabase ( ). , .
BackupAgentHelper
SharedPreferenceBackupHelper
:
BackupAgentHelperSharedPreferenceHelper ( , )
, . , :) .
Source: https://habr.com/ru/post/1525790/More articles:LINQ Datatable return 0 instead of null union - c #Custom Header Setting in Outlook MailItem - c #Find all maximum indices in Pandas DataFrame - pythonКаков стандартный URL-адрес возврата Woocommerce для Paypal? - paypalDart Editor: expected url - dartAccept permission request in chrome using selenium - google-chromeClick the "Request Chrome" button to save the password. - pythonselenium webdriver python: opening a Chrome browser to run a test case does not load saved browser settings - pythonHow do you move SVG around a web page without starting slow redraws? - javascriptHTTP Error 404.11 Passing Account Activation. Token by querystring - asp.netAll Articles