rampo/UpdateChecker


Increase your app's updates

License: Apache-2.0

Language: Java


Update Checker

Android User, never miss an Update.

image

Overview

UpdateChecker is a class that can be used by Android Developers to increase the number of their apps' updates by showing a "New update available" Notification or Dialog.

It checks for new updates downloadable parsing the Store desktop page of your app.

XDA Thread

Featured on XDA Portal

Changelog

Current version: 2.1.8

See complete ChangeLog.

Example

Due to Play Store problems, I can't publish the demo app on Play Store, so the demo has the same package of ActionBarSherlock: Demos because the library needs a published app on Play Store to work.

Check out the source code of the demo or download directly the apk.

Usage

  • In your build.gradle file:

    dependencies {
        compile 'com.github.rampo.updatechecker:library:2.1.8'
    }   
  • Then, add INTERNET and ACCESS_NETWORK_STATE permissions to your app's Manifest:

    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
  • Start using UpdateChecker: a dialog will be shown if a new update is found:

    UpdateChecker checker = new UpdateChecker(this); // If you are in a Activity or a FragmentActivity
    UpdateChecker checker = new UpdateChecker(getActivity()); // If you are in a Fragment
    checker.start();

Important!

  • If there is a new update available when your app is launched, the Notification / Dialog will not be shown every time. The Notification/Dialog will be shown every 5 times the app ascertains that a new update is available. It's a precaution to make the library not too invasive. To modify this, see Customization/setSuccessfulChecksRequired().

  • See Issue #1

Customization

You can set the store where your app is published on, the successful checks necessary to show notice, modify the notice (Dialog or Notification) and modify the notice icon. Check out Customization doc for more infos. Example: show a notification instead of a dialog

UpdateChecker checker = new UpdateChecker(this);
checker.setNotice(Notice.NOTIFICATION);
checker.start();

See Custom implementation if you don't want to use these Notices and manage the result by yourself.

Contribution

Questions

If you have any questions regarding UpdateChecker, create an issue.

Feature request

To create a new Feature request, open an issue here.

I'll try to answer as soon as I find the time.

Pull requests welcome

Feel free to contribute to UpdateChecker.

Either you found a bug or have created a new and awesome feature, just create a pull request.

Please note, if you're working on a pull request, make sure to use the develop branch as your base.

Discuss

Join in the conversation, check out the XDA Thread.

Coming soon

  • Stackoverflow tag for more specific code problems
  • Preference to disable UpdateChecker
  • Changelog Functions
  • Rate this app Functions

Credits

Written and maintained by: Pietro Rampini - PiKo Technologies

Follow me on Google+ Follow me on Twitter

The UpdateChecker logo has been created by Michael Cook

License

Apache Version 2.0

Project Statistics

Sourcerank 9
Repository Size 31 MB
Stars 672
Forks 137
Watchers 36
Open issues 23
Dependencies 1
Contributors 22
Tags 20
Created
Last updated
Last pushed

Top Contributors See all

Pietro Rampini francisboys gsdstr Jaroslav_ Niek Haarman Ko HanJong Lukas Pradel Niklas Wenzel slawekkrol Mihály Hunyady Yazeed Muq zoeil5 Bjørn Christian Seime Selim Arne Stockmans Gerson Alexander Pardo Gamez Tatsuya Arai pyler Felipe Vasconcelos bernatbp

Packages Referencing this Repo

com.github.rampo.updatechecker:library
UpdateChecker is a class that can be used by Android Developers to increase the number of their a...
Latest release 2.1.8 - Updated - 672 stars

Recent Tags See all

v2.1.8 April 30, 2015
v2.1.7 April 10, 2015
v2.1.6 March 06, 2015
v2.1.5 January 21, 2015
v2.1.4 September 25, 2014
v2.1.3 September 13, 2014
v2.1.2 August 20, 2014
v2.1.1 July 26, 2014
v2.1.0 July 07, 2014
v2.0.1 April 19, 2014
v2.0.0 March 29, 2014
v1.2.5 December 28, 2013
v1.2.4 December 11, 2013
v1.2.3 December 10, 2013
v1.2.2 December 02, 2013

Interesting Forks See all

jelychow/UpdateChecker
Increase your app's updates
Java - Updated - 1 stars
akhil1298/UpdateChecker
Increase your app's updates
Java - Updated - 1 stars

Something wrong with this page? Make a suggestion

Last synced: 2016-11-24 16:23:15 UTC

Login to resync this repository