Download content when app is updated via google play?

前端 未结 5 721
野趣味
野趣味 2021-02-10 05:24

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:49

    You need to implement a Broadcast Receiver that gets notified when the Paackage is beeing replaced:
    In your Manifest include:

    
      
      
         
      
    
    

    The class MyReceiver needs to extend android.content.BroadcastReceiver

    To Answer your second question: The SharedPreferences aren't affected by an update through Google Play, as aren't the files in your App's data-Folder.

提交回复
热议问题