android - Resetting shared preferences upon reinstallation -
is there way delete or reset shared preferences data when re-installing app, without uninstalling app , installing it?
what mean is, currently, developing app uses shared preferences, still developing it, keep running , uploading app test phone through eclipse after make changes. unable run app beginning of expected process ( after first time) , without uninstalling older version , uploading app again.
for in launching activity oncreate() method check whether shared preference file exist or not if exist delete it.and later create ever want.. can check preference file exist or not this..
public boolean isfirsttime() { return getdatabasepath("your file name").exists(); }
Comments
Post a Comment