Skip to content

Instantly share code, notes, and snippets.

View jaikeerthick's full-sized avatar
🌱
Surviving...

Jai Keerthick jaikeerthick

🌱
Surviving...
View GitHub Profile
@walteranyika
walteranyika / Updates.java
Last active January 22, 2023 04:43
The check for updates function used to do in app updates from google play store
//Add this to gradle
// implementation 'com.google.android.play:core:1.5.0'
private static final int MY_REQUEST_CODE = 2399;
private void checkForUpdates() {
final AppUpdateManager appUpdateManager = AppUpdateManagerFactory.create(this);
Task<AppUpdateInfo> appUpdateInfoTask = appUpdateManager.getAppUpdateInfo();