//下载成功
@Override
public void onSuccess(ResponseInfo<File> responseInfo) {
System.out.println("下载成功");
// 跳转到系统安装页面
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.addCategory(Intent.CATEGORY_DEFAULT);
intent.setDataAndType(Uri.fromFile(responseInfo.result),
"application/vnd.android.package-archive");
startActivityForResult(intent, 0);// 如果用户取消安装的话,
// 会返回结果,回调方法onActivityResult
}
Android跳转到应用安装界面的方法
猜你喜欢
转载自blog.csdn.net/zhangying1994/article/details/51103684
今日推荐
周排行