Android - Preventing Application data or files being deleted thru "Clear Data" settings option -
i have android application stores 25-40k of private app data in few files. default sytem stores these files in directory /data/data/'my app package'/files. when user goes "setting->applications->manage applications->'my app package'" , chooses "clear data" option, files, databases folders app being deleted. need keep data on device until app "uninstalled".
is there way keep application data "on device" somewhere without being deleted? device not rooted. app not meant on rooted devices.
note: saw /data/data/'my app package'/lib directory not being deleted using "clear data" option. couldn't programatically write direcroty. permission denied. there way use directory store data? there way use ndk (not worked on yet) keep data safe? there way keep data in application reosurce or dll resource in windows programing.
any please me out of jam? appreciate it.
thank you; have day. jacob
the following works me: android:managespaceactivity=".activityofmychoice"
then instead of "clear data", there button "manage space" launches activityofmychoice
it's working app, , see working on dolphin browser (which prompted me find info).
i'm using samsung captivate (at&t galaxy s) stock 2.2 (froyo). don't know if devices might display both, or not.
some devices may still display both, or may not show manage space @ all
Comments
Post a Comment