如何打开设置>更多>位置服务>我的地方以编程方式

时间:2014-01-03 01:25:59

标签: android location

我基本上想在我的应用中打开这个屏幕:

enter image description here

我希望有类似于下面用于打开蓝牙设置的代码:

    final Intent intent = new Intent(Intent.ACTION_MAIN, null);
    intent.addCategory(Intent.CATEGORY_LAUNCHER);
    final ComponentName cn = new ComponentName("com.android.settings",
            "com.android.settings.bluetoothSettings");
    intent.setComponent(cn);
    intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    context.startActivity(intent);

0 个答案:

没有答案
相关问题