这个问题与other非常相似。
然而,仍然没有解决方案。
我使用下面的代码跳转到辅助功能设置页面。
Intent intent = new Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS);
startActivityForResult(intent, REQUEST_USAGE_SETTING);我想把用户带到我的应用程序的设置页面,而不是跳转到主辅助功能设置页面。
发布于 2019-10-02 15:02:35
要打开应用程序的设置页面,您需要传递应用程序的包名称,如下所示,尝试此操作会将您重定向到应用程序的设置页面
Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
Uri uri = Uri.fromParts("package", getPackageName(), null);
intent.setData(uri);
startActivityForResult(intent, 1);https://stackoverflow.com/questions/58196480
复制相似问题