Step 2. Add the dependency

Samples

Implementation

new CheckNewAppVersion(yourContext).setOnTaskCompleteListener(new CheckNewAppVersion.ITaskComplete() {
@Override
public void onTaskComplete(CheckNewAppVersion.Result result) {
//Checks if there is a new version available on Google Play Store.
result.hasNewVersion();
//Get the new published version code of the app.
result.getNewVersionCode();
//Get the app current version code.
result.getOldVersionCode();
//Opens the Google Play Store on your app page to do the update.
result.openUpdateLink();
}
}).execute();