Updating an application OTA

佐手、 提交于 2019-11-29 11:14:49

Easiest is just to launch an Intent to open the download URL in the Browser. This will download the APK and the user can then install it by clicking on it in the download manager.

You are saying that this will handle OTA separate to the market so the user should already have disabled "Allow apps from non-Market sources" when they initially installed your app.

Just a note that this isn't likely to work well: most devices come with the "Allow apps from non-Market sources" option disabled (under Settings > Applications).

This means that when you launch the intent to install the app, the user will get a warning dialog and the install will fail.

While you can check against an external source for new updates (e.g. checking a text file on your server) and notify the user, I would redirect them to the Android Market itself to do the upgrade.

As everyone has said "Allow apps from non-Market sources" option could be a real pain for you as people other than beta testers or like them would not be intrested to check this option for varoius reasons. Try Testflight, it should help. https://testflightapp.com/android/

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!