Reputation: 1495
I want to export a new version of my APPLICATION, and i want to force the user to uninstall and reinstall the app for the new version (for different reasons). Is it possible?
Upvotes: 1
Views: 3398
Reputation: 734
Change the signature / key of your apk. I have read the this forces a full uninstall on the devices
Screenshot from eclipse.
Upvotes: 0
Reputation: 8781
Changing the signature of your app, will do the trick. What happens is that the system will warn the user when installing the new app that this app was found but with a different signature. The user has to uninstall the current app before the new app can be installed.
A more direct way than this does not exist. And there is a chance that many users won't understand why the app does not install. You should try to make your app so that this won't be necessary. Uninstalling the current app will also mean that the users loses it's data.
Another option is to change the package name in the manifest file, but this will mean the user loses all it's app data. Because the app will be installed as totally new app.
It's bad....
Rolf
Upvotes: 2