我想从应用程序打开Play商店。在三星中还可以,但在OnePlus移动版中却失败了。我不知道阿里巴巴来自哪里。真奇怪。
异常java.lang.SecurityException:权限拒绝:开始意图{act = android.intent.action.VIEW dat = http://play.google.com/ ... cmp = com.alibaba.intl.android.apps.poseidon /com.alibaba.android.intl.weex.activity.WeexPageActivity}未从uid 10156导出,来自ProcessRecord {a1dd30c 15827:a2bliving.ie.a2b / u0a151}(pid = 15827,uid = 10151)
码:
private static final String PLAY_STORE_LINK = "http://play.google.com/store/apps/details?id=%s&hl=en";
public void openUpdateLink() {
context.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(getExternalAppLink())));
}
public String getExternalAppLink() {
return String.format(PLAY_STORE_LINK, context.getPackageName());
}
Run Code Online (Sandbox Code Playgroud)