Code Monkey home page Code Monkey logo

updatechecker's Introduction

#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.0.1

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.0.1'
     }	
  • 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);
    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

updatechecker's People

Contributors

bjorncs avatar favasconcelos avatar istvangal avatar lpradel avatar nhaarman avatar nikwen avatar pietrorampini avatar pylersm avatar rino0601 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.