Enabling / Launching 'Google Setting for Location' from android
android, android-intent, android-settings
Solution
You can open the settings using `Intent`, try this:
Intent viewIntent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
startActivity(viewIntent);
Problem
I had a simple question about how can we enable or launch the Google Location Setting -> Access Location in our application. And i am talking about the new Setting that google has updated. EDIT : Intent to open google Setting i found was only this: ``` Intent settings = new Intent(); settings.setPackage("com.google.android.gms"); settings.addCategory(Intent.CATEGORY_LAUNCHER); starrtActivity(settings); ``` but i wan to open `'Access Location'`, can we directly enable location access or use an Intent to open location access. I also checked out the developers site, but dint found one in below ACTION_LOCATION_SOURCE_SETTINGS If its possible then do let me know, as it might enable our application to get the latest accurate location available.