Auto-restart app after market update

前端 未结 3 1161
滥情空心
滥情空心 2020-12-19 02:47

Anytime I publish a new version of my app in the Market, if the user had enabled the \"auto update\" option, the app will be updated automatically.

The app contains

3条回答
  •  猫巷女王i
    2020-12-19 03:10

    If your app is running on API 12 or higher, I would recommend registering a BroadcastReceiver listening to android.intent.action.MY_PACKAGE_REPLACED.

    This Intent is only triggered if YOUR application got an update.

提交回复
热议问题