Android : restart application after update - ACTION_PACKAGE_REPLACED

后端 未结 5 1434
情歌与酒
情歌与酒 2020-12-03 10:09

My application that is not on Play Store verify on the web If there are a new version and download and start it. After the installation I would like to restart the applicati

5条回答
  •  -上瘾入骨i
    2020-12-03 11:07

    After two days of struggle and experimentation, I found out the reason. It turned out I need to carefully read the official documentation.

    As said here: https://developer.android.com/reference/android/content/Intent#ACTION_MY_PACKAGE_REPLACED

    It turned out the key phrase is: It does not contain any additional data

    those. if you changed the manifest, then the application will not restart after updating

    you are welcome

提交回复
热议问题