You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This class makes a request to Play Store to check if there is a new version of your published app. Then, you can notify your users to do the update.
3
+
4
+
# Porpouse
5
+
6
+
This class makes a request to the Play Store to check if there is a new version of your published app. Depends on that, you can notify your users to then, do the update.
7
+
8
+
# Usage
9
+
10
+
11
+
# Implementation
12
+
13
+
new CheckNewAppVersion(yourContext).setOnTaskCompleteListener(new CheckNewAppVersion.ITaskComplete() {
14
+
@Override
15
+
public void onTaskComplete(CheckNewAppVersion.Result result) {
16
+
17
+
//Checks if there is a new version available on Google Play Store.
18
+
result.hasNewVersion();
19
+
20
+
//Get the new published version code of the app.
21
+
result.getNewVersionCode();
22
+
23
+
//Get the app current version code.
24
+
result.getOldVersionCode();
25
+
26
+
//Opens the Google Play Store on your app page to do the update.
0 commit comments