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 »

5 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
9 March 2021 at 14:40 delete

This is very interesting. thanks for that. we need more sites like this. i commend you on your great content and excellent topic choices. health related fitness contributes to sports performance

Reply
avatar
16 March 2021 at 13:00 delete

This is an excellent post I seen thanks to share it. It is really what I wanted to see hope in future you will continue for sharing such a excellent post. the right of workers to seek safety and health
This type of article is interesting and fun to read. I like reading and I am always searching for informative info like this. king saud bin abdulaziz university for health sciences
This is great website and owner of this website is also great because he give help full information with us thanks for sharing great and wonderful information. fundamentals of law for health informatics and information management

Reply
avatar
22 April 2021 at 11:04 delete

You did the a great work writing and revealing the hidden beneficial features of oral b glide pro health original tape

Reply
avatar

Please Comment about the Posts and Blog