Download content when app is updated via google play?

前端 未结 5 1205
余生分开走
余生分开走 2021-02-10 05:09

So this is the first time I am going to send an update for my app and I don\'t know about what actully happens when an app is updated via google-play,

Here are some ques

5条回答
  •  忘了有多久
    2021-02-10 05:45

    One way of checking if a new version has been installed is to use shared preferences. When the app is opened, you can check if an entry for that version is present. If it's not, a new version has been installed. After your processing is done, you can save the current version number in shared preferences.

    As for your second question, shared preferences are not lost or reset by the update process. They stay as they were.

提交回复
热议问题