java - 启用 Google 位置服务 Intent

标签 java android android-intent android-location android-settings

是否可以使用 Intent 将用户带到“设置”->“位置”,以便他能够启用应用程序获取设备位置?

这是我想要转到的屏幕:

enter image description here

最佳答案

试试这个:

Intent intent= new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS);
    startActivity(intent);

关于java - 启用 Google 位置服务 Intent ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24507466/

相关文章:

java - 在 JList 中写一些东西

java - 如何使用 Microsoft Java-Client 接收 SignalR 广播消息?

java - Robolectric 测试 gridview onclick 开始新 Activity

Android Intent 选择器仅显示电子邮件选项

android - 使用 Android 教程方法重新缩放图像

java - Maven 使用 pom.xml 将 Maven 存储库从 {user}/.m2/repository 更改为 projectfolder

java - 格式 hh :mm:ss 的解析时间

java - 重复 JPaneInput 的多次 Try/Catch

android - 如何将应用程序转换为系统应用程序?

android - 如何通过使用 Intent 导航到 'android.intent.action.MAIN' Activity ?