当前位置 : 主页 > 编程语言 > c++ >

打开设备的设置页面

来源:互联网 收集:自由互联 发布时间:2021-06-30
gistfile1.txt public void openSettings(Context context) { Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS); Uri uri = Uri.fromParts("package", context.getPackageName(), null); intent.setData(uri); context.startActivi
gistfile1.txt
public void openSettings(Context context) {

        Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
        Uri uri = Uri.fromParts("package", context.getPackageName(), null);
        intent.setData(uri);
        context.startActivity(intent);
    }
网友评论