首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > Android执行远程安装APK功能

Android执行远程安装APK功能

  • 资源大小:7.25 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: Android

资 源 简 介

Android执行远程安装APK命令,远程安装APK,代码中已经定义了一个远程APK的路径,在Android环境下,执行安装命令,自动下载远程APK并执行安装。HttpResponse httpResponse = new DefaultHttpClient()    .execute(httpGet);   if (httpResponse.getStatusLine().getStatusCode() == 200)   {    InputStream is = httpResponse.getEntity().getContent();    FileOutputStream fos = new FileOutputStream(downloadPath    + "/integration.apk");    byte[] buffer = new byte[8192];    int count = 0;    while ((count = is.read(buffer)) != -1)    {    fos.write(buffer, 0, count);    }    fos.close();    is.close();    installApk(downloadPath+ "/integration.apk");   }

文 件 列 表

srcfans.com
remoteinstallapk
.project
remoteinstallapk
remoteinstallapk
.classpath
srcfans.com
VIP VIP
0.196353s