No Activity found to handle Intent { act=android.intent.action.VIEW dat=app-settings: flg=0x10000000 }
9157654
- 发布:2023-03-31 13:42
- 更新:2023-03-31 14:08
- 阅读:868
if(plus.os.name === 'iOS'){
plus.runtime.openURL("app-settings://");
}else{
var Intent = plus.android.importClass("android.content.Intent");
var Settings = plus.android.importClass("android.provider.Settings");
var Uri = plus.android.importClass("android.net.Uri");
var mainActivity = plus.android.runtimeMainActivity();
var intent = new Intent();
intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
var uri = Uri.fromParts("package", mainActivity.getPackageName(), null);
intent.setData(uri);
mainActivity.startActivity(intent);
}
9157654 (作者)
可以了,多谢
2023-03-31 15:53