XXX
XXX

Reputation: 9072

App uninstalls itself without user intervention. Is it possible?

I'm trying to write a UpdateManager which automatically updates the application. Everything is ready except for the method RemoveMyself().

Question: can app uninstall itself without user intervention?

Upvotes: 0

Views: 893

Answers (1)

Aleks G
Aleks G

Reputation: 57316

If you install a new version of the app - and the new version has exactly the same package/class (package attribute of manifest element and android:name attribute of the main activity) as the old version, it will automatically overwrite the old version with no need to uninstall it.

Upvotes: 2

Related Questions