Automatic Update Checker for Android - Library

Automatic Update Checker for Android - Library

Featured In 
Android Arsenal-UpdateHandler
Created By

How to use this Library:

Gradle: 
compile 'androidmads.updatehandler:updatehandler:1.0.3'
Maven:
<dependency>
  <groupId>androidmads.updatehandler</groupId>
  <artifactId>updatehandler</artifactId>
  <version>1.0.3</version>
  <type>pom</type>
</dependency>
How to use this Library: 
After importing this library, use the following lines to check version update for your application automatically.
/** 
* This library works in release mode only with the same JKS key used for 
* your Previous Version
*/
UpdateHandler updateHandler = new UpdateHandler(MainActivity.this);
// to start version checker
updateHandler.start();
// prompting intervals
updateHandler.setCount(2);
// to print new features added automatically
updateHandler.setWhatsNew(true);
// to enable or show default dialog prompt for version update
updateHandler.showDefaultAlert(true);
// listener for custom update prompt
updateHandler.setOnUpdateListener(new UpdateListener() {
    @Override
    public void onUpdateFound(boolean newVersion, String whatsNew) {
        Log.v("Update", String.valueOf(newVersion));
        Log.v("Update", whatsNew);
    }
});

Demo:
Alert Without What' New


Alert With What' New


Update Prompt with Custom Listener

Share this

Related Posts

Previous
Next Post »

2 comments

comments
12 January 2019 at 18:13 delete

That is really nice to hear. thank you for the update and good luck. kit per cancelli automatici

Reply
avatar
Anonymous
23 January 2019 at 21:01 delete

Is there any sample app which uses this library?
If yes, then can you share the source code or git repo for learning purpose?

Reply
avatar

Please Comment about the Posts and Blog