如何将手机上的应用市场设置为默认打开的安装应用界面?
- 内容介绍
- 文章标签
- 相关推荐
本文共计78个文字,预计阅读时间需要1分钟。
plaintextprivate void installApkOnAppStore() { try { // 尝试在应用商店更新 Intent intent=new Intent(Intent.ACTION_VIEW, Uri.parse(market://details?id= + context.getPackageName())); intent.setPackage(com.android.vending); } catch (Exception e) { // 处理异常 }}
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) { } }
本文共计78个文字,预计阅读时间需要1分钟。
plaintextprivate void installApkOnAppStore() { try { // 尝试在应用商店更新 Intent intent=new Intent(Intent.ACTION_VIEW, Uri.parse(market://details?id= + context.getPackageName())); intent.setPackage(com.android.vending); } catch (Exception e) { // 处理异常 }}
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) { } }

