我想从应用中打开Play Store。在三星手机上可以,但是在一加手机上失败了。 我不知道阿里巴巴是从哪儿来的。这很奇怪。
异常java.lang.SecurityException:Permission Denial:starting Intent {act = android.intent.action.VIEW dat = http://play.google.com/ ... cmp = com.alibaba.intl.android.apps.poseidon /com.alibaba.android.intl.weex.activity.WeexPageActivity} from ProcessRecord {a1dd30c 15827:a2bliving.ie.a2b/u0a151}(pid = 15827,uid = 10151)未导出自uid 10156
代码:
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());
}