Giter VIP home page Giter VIP logo

android-auto-update's Introduction

Android应用自动更新库(android-auto-update)

该library项目实现了软件版本检查,apk文件下载,软件安装(Android app update checker,download and install apk)支持API 8+

1.导入library项目

提供2种版本检查方式,在你的项目中添加以下代码即可

  • 使用Dialog

      `UpdateChecker.checkForDialog(this);`
    
  • 使用Notification

    UpdateChecker.checkForNotification(this);

2.添加权限

  • 添加访问网络的权限

    <uses-permission android:name="android.permission.INTERNET" />

  • 添加写SDCard权限(可选,非必须)

    如果添加这个权限 apk下载在sdcard中的Android/data/包名/cache目录下 否则下载到 内存中的 /data/data/包名/cache中

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

3.截图

screenshot screenshot screenshot screenshot screenshot screenshot screenshot screenshot

4.参考

  1. android-styled-dialogs 使用该项目,可以在api 8+上显示 holo 风格的对话框,其它选择 ,当然你也可以使用其它的开源项目比如:ActionBarSherlockHoloEverywhere

  2. UpdateChecker 该项目检查的是google play上的应用,如果有更新打开google Play,不提供下载apk的功能

android-auto-update's People

Contributors

feicien avatar

Watchers

 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.