VersionChecker is an Android library to check the version of the application with Google Play Store and force update.
Add this dependency in your build.gradle
:
dependencies {
compile 'com.statickidz.versionchecker:versionchecker:1.0.2'
}
The simplest integration:
public class MainActivity extends AppCompatActivity {
VersionChecker versionChecker;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
versionChecker = new VersionChecker(this);
versionChecker.check();
}
}
Have a look at the sample project for other examples.
Licensed under the Apache License. See the LICENSE.md file for more details.