2012年2月2日

android apk版本更新的实现

摘要: 1 private void installFile(File file) {2 Intent intent = new Intent(Intent.ACTION_VIEW);3 intent.setDataAndType(Uri.fromFile(file),"application/vnd.android.package-archive");4 startActivity(intent);5 }这是下载完成之后自动安装新的apk的实现代码。 阅读全文

posted @ 2012-02-02 00:52 oasis2008 阅读(363) 评论(0) 推荐(0)

导航