Giter VIP home page Giter VIP logo

appdownload's Introduction

AppDownload

适配8.0,有下载进度的Android版本更新库。

版本更新涉及到几个问题,文件下载,下载进度,更新逻辑的控制(强制更新,正常更新以及无更新)等。本项目只是做了简单的实现,可根据公司产品要求和UI设计,自行拓展。

注意的地方: 1.AndroidManifest.xml中的权限注册,以及动态权限申请。(如果动态权限未申请到,请在设置中打开)

2.利用Android安装程序,7.0及以上会有问题,要添加fileProvider注册

    <provider
        android:name="android.support.v4.content.FileProvider"
        android:authorities="appupdate.zhouh.com.appdownload.fileProvider"
        android:exported="false"
        android:grantUriPermissions="true">
        <meta-data
            android:name="android.support.FILE_PROVIDER_PATHS"
            android:resource="@xml/file_paths" />

    </provider>

appdownload's People

Contributors

zhboy avatar

Stargazers

 avatar  avatar zhumz avatar GHome avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

wutianxuan

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.