Featured In  Created By How to use this Library: Gradle:  compile 'androidmads.updatehandler:updatehandler:1.0.3' M...

Automatic Update Checker for Android - Library Automatic Update Checker for Android - Library

Automatic Update Checker for Android - Library

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

4 comments:

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

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

    ReplyDelete
  3. 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

    ReplyDelete
  4. 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

    ReplyDelete

Please Comment about the Posts and Blog