How to check there is new version of app is available on playstore, notify users to update old apps with new version in android and display yes or no to get them playstore. Just follow the instructions and put the attached code in your app to check the new version of app is available or not. This code check the app version each day if there is any new version update is available on playstore the a popup will appear on app launch as given image below.
It will ask user Yes or No to cancel the popup, if user selects Yes then user will be redirected to playstore to update the app if user selects No then the popup will cancel. On next day after completing the time defined for SharedPrefrences key again appear if app is not updated.
Just Download the Code Attached in this article and add it in your project.
After adding the code just past one line of code in your onCreate method of your app Main Activity. The code is given below :
new UpdateRunnable(this, new Handler()).start();
Subscribe to:
Post Comments (Atom)
0 Comments:
Post a Comment