开发者

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 ap开发者_如何学编程plication self. Does anyone has the experience of it ?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜