Auto-restart app after market update

前端 未结 3 1162
滥情空心
滥情空心 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条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-19 03:19

    Register a BroadcastReceiver to Intent.ACTION_PACKAGE_REPLACED

    Then, compare EXTRA_UID with your own. If it matches, you can start your service again.

提交回复
热议问题