Giter VIP home page Giter VIP 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 users update their apps by showing a "New Update Available" Notification or Dialog.

It's based on Fragments, It checks for new updates downloadable by parsing the Play Store desktop page of your app.

XDA Thread

Featured on XDA Portal!

Changelog

Current version: 1.2.1

See complete ChangeLog

Dependencies

Example

  • Check out the Demos folder

Usage

  • Import Styled Dialogs into the library.

  • Import android-support-v4.jar into the library.

  • Import the library into you app.

  • First, 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"/>
    
  • So, in the class you want to use the library extend a FragmentActivity (or, obviously, a SherlockFragmentActivity ).

  • To show a Play-Store-App-like notification if a new update was found:

      UpdateChecker.checkForNotification(this);
    

    Image

  • To show a dialog if a new update was found:

      UpdateChecker.checkForDialog(this);
    

    Image

##Important!

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

  • See Issue #1

##Customization

  • You can modify modify the number of checks after the dialog will be shown. Default is 5.

      UpdateChecker.checkForNotification(this, 10);
      
      UpdateChecker.checkForDialog(this, 10);
    
  • You can modify the notification Drawable by calling a variant of checkForNotification(...) method:

      UpdateChecker.checkForNotification(R.drawable.ic_launcher, this)
      
      UpdateChecker.checkForNotification(R.drawable.ic_launcher, this, 10)
    

Image

##Contribution

Questions

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

Feaure 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 it out the XDA Thread

Coming soon

  • Support for apps not published on Google Play
  • Stackoverflow tag for more specific code problems
  • Preference to disable UpdateChecker

Credits

Author: Pietro Rampini - PiKo Technologies

Follow me on Google+ Follow me on Twitter ## License

updatechecker's People

Contributors

pietrorampini avatar nhaarman avatar nikwen avatar

Watchers

James Cloos avatar Renan Grativol 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.