当前位置 : 主页 > 编程语言 > c++ >

打开手机的安装的应用市场

来源:互联网 收集:自由互联 发布时间:2021-06-30
gistfile1.txt private void installApkOnAppStore() { try { // try to update in google store Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + context.getPackageName())); intent.setPackage("com.android.vending"
gistfile1.txt
private void installApkOnAppStore() {
        try {
            // try to update in google store
            Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + context.getPackageName()));
            intent.setPackage("com.android.vending");
            context.startActivity(intent);
        } catch (Exception e) {
        }
    }
网友评论