Android自动更新(更新提示,资源下载,自动安装)

上传者: wain163 | 上传时间: 2021-04-22 02:08:27 | 文件大小: 71KB | 文件类型: RAR
一个简单完整的android 自动更新实现,包括读取版本号提示更新,和更新下载,以及下载完毕之后自动提示替换安装。(其中里面涉及到一个版本号的文件可以是任何文本文件,但里面内容最好是json格式)

文件下载

资源详情

[{"title":"( 34 个子文件 71KB ) Android自动更新(更新提示,资源下载,自动安装)","children":[{"title":"Update_Test","children":[{"title":"bin","children":[{"title":"classes.dex <span style='color:#111;'> 17.61KB </span>","children":null,"spread":false},{"title":"com","children":[{"title":"trinet","children":[{"title":"util","children":[{"title":"NetHelper.class <span style='color:#111;'> 4.78KB </span>","children":null,"spread":false},{"title":"DialogHelper.class <span style='color:#111;'> 4.37KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"update","children":[{"title":"test","children":[{"title":"UpdateManager$UpdateCallback.class <span style='color:#111;'> 395B </span>","children":null,"spread":false},{"title":"Update_TestActivity.class <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false},{"title":"R$layout.class <span style='color:#111;'> 373B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 379B </span>","children":null,"spread":false},{"title":"UpdateManager$2.class <span style='color:#111;'> 2.74KB </span>","children":null,"spread":false},{"title":"UpdateManager$1.class <span style='color:#111;'> 1.57KB </span>","children":null,"spread":false},{"title":"UpdateManager.class <span style='color:#111;'> 4.92KB </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 319B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 447B </span>","children":null,"spread":false},{"title":"Update_TestActivity$1$2.class <span style='color:#111;'> 1.80KB </span>","children":null,"spread":false},{"title":"Update_TestActivity$1$1.class <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 868B </span>","children":null,"spread":false},{"title":"UpdateManager$3.class <span style='color:#111;'> 2.65KB </span>","children":null,"spread":false},{"title":"Update_TestActivity$1.class <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"Update_Test.apk <span style='color:#111;'> 21.08KB </span>","children":null,"spread":false},{"title":"resources.ap_ <span style='color:#111;'> 10.92KB </span>","children":null,"spread":false}],"spread":true},{"title":"res","children":[{"title":"drawable-ldpi","children":[{"title":"icon.png <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"icon.png <span style='color:#111;'> 4.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 796B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"icon.png <span style='color:#111;'> 2.51KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"main.xml <span style='color:#111;'> 248B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"assets","children":null,"spread":false},{"title":"default.properties <span style='color:#111;'> 362B </span>","children":null,"spread":false},{"title":"gen","children":[{"title":"update","children":[{"title":"test","children":[{"title":"R.java <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"proguard.cfg <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"com","children":[{"title":"trinet","children":[{"title":"util","children":[{"title":"DialogHelper.java <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false},{"title":"NetHelper.java <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"update","children":[{"title":"test","children":[{"title":"UpdateManager.java <span style='color:#111;'> 7.37KB </span>","children":null,"spread":false},{"title":"Update_TestActivity.java <span style='color:#111;'> 2.83KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 847B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 280B </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 846B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • par :
    是使用了异步检查更新,应该可以用
    2018-12-04
  • LeoXing :
    代码可用,思路还可以
    2017-09-18
  • java_天照 :
    有一定的参考价值,还可以
    2017-07-14
  • lifei_7981536 :
    不错 可以用谢谢
    2017-05-11
  • colgao :
    还行,用上了,谢谢
    2017-03-02
  • 点孤 :
    谢谢分享,学习了
    2016-11-02
  • qq_15614845 :
    有用,谢谢分享
    2016-09-06
  • mydreamstar :
    学习了,谢谢楼主分享!
    2016-08-30
  • capercheno :
    还算可以,已经使用
    2016-08-26
  • reterry :
    谢谢分享!很有用!
    2016-08-16

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明