设置.ACTION_APPLICATION_DEVELOPMENT_SETTINGS在仿真器Nexus 9 API 24上失败

时间:2016-07-26 13:40:04

标签: android

我想将用户导航到开发人员选项以启用模拟位置,如下所示

startActivity(new Intent(Settings.ACTION_APPLICATION_DEVELOPMENT_SETTINGS));

但它正在抛出ActivityNotFoundException

 android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.settings.APPLICATION_DEVELOPMENT_SETTINGS }

这段代码有什么问题?

0 个答案:

没有答案