noar
noar

Reputation: 73

How to modify android application versioncode with application self?

My application could update with myself server not use the android market. So I want to change the version with the application self. Does anyone has the experience of it ?

Upvotes: 0

Views: 206

Answers (1)

RivieraKid
RivieraKid

Reputation: 5961

This is not possible - you do not have write access to the version information of packages at run-time. You can only change it at build time.

It is possible to perform an upgrade programmatically, but the new package would have the version code specified at build-time as I mentioned above, and the device would require the "Install from unknown sources" option enabled.

Upvotes: 1

Related Questions