To check application's version Library
You can use it for getting a version of an application.
If you have already published an your application on market, you can get the market version.
dependencies{
minSdkVersion 15
targetSdkVersion 28
....
implementation 'com.lsh.checkversion:check-market-version:x.x.x'
}
- Menifset
<uses-permission android:name="android.permission.INTERNET" />
- Java
CheckModule module = new CheckModule(context); // Constructor with context.
module.getMarketVer(); // Get an application's market version.
module.getApplicationVer(); // Get an application's package version(current version).
module.isVersionSame(); // Market ver and Current ver equals or not.