Android M - 权限设置重定向(INTENT ACTION)
Android M - Permission settings redirect (INTENT ACTION)
有没有办法将用户重定向到应用程序的设置或更好地重定向到特定应用程序的权限?如下图:
此致。
Is there a way to redirect a user to the settings of an application
Use ACTION_APPLICATION_DETAILS_SETTINGS
.
or better to the permissions of a specific application?
我认为没有办法驱动到那个特定的屏幕。
无意直接进入权限页面。
但是,您可以通过 intent 将用户重定向到应用程序的详细设置页面。
ACTION_APPLICATION_DETAILS_SETTINGS
这是代码片段:
Intent intent = new Intent();
intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
Uri uri = Uri.fromParts("package",activity.getPackageName(), null);
intent.setData(uri);
context.startActivity(intent);
希望对您有所帮助!
有没有办法将用户重定向到应用程序的设置或更好地重定向到特定应用程序的权限?如下图:
此致。
Is there a way to redirect a user to the settings of an application
Use ACTION_APPLICATION_DETAILS_SETTINGS
.
or better to the permissions of a specific application?
我认为没有办法驱动到那个特定的屏幕。
无意直接进入权限页面。
但是,您可以通过 intent 将用户重定向到应用程序的详细设置页面。 ACTION_APPLICATION_DETAILS_SETTINGS
这是代码片段:
Intent intent = new Intent();
intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
Uri uri = Uri.fromParts("package",activity.getPackageName(), null);
intent.setData(uri);
context.startActivity(intent);
希望对您有所帮助!