UpdateChecker


Source link: https://github.com/rampo/UpdateChecker

#Update Checker

Android User, never miss an Update.

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

The UpdateChecker logo has been created by Michael Cook

License

Apache Version 2.0

Resources

InfiniteListView is a custom Android ListView that gets extended at each time new items are loaded by swiping to the bottom of list. It also supports swipe-to-refresh behavior.

Material design FAB action animations.

Event bus for Android with fine-grained thread control.

A helper to work with StatusBar and NavigationBar.

This is a tiny library for Android which makes it simple to monitor when your app becomes visible or hidden, in a cool RxJava way.

CatanArchitecture is a sample repository to illustrate Hexagonal architecture in Android.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes