Featured In
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.
Demo:
/**
* 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

That is really nice to hear. thank you for the update and good luck. kit per cancelli automatici
ReplyDeleteIs there any sample app which uses this library?
ReplyDeleteIf yes, then can you share the source code or git repo for learning purpose?
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
ReplyDeleteThis 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
ReplyDeleteThis 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