4 Workable Solutions to Enable Location Services on Android
Home > Android Location > 4 Workable Solutions to Enable Location Services on Android

4 Workable Solutions to Enable Location Services on Android

Can’t seem to turn on GPS on your Android phone? Read this detailed guide and get to know every possible way to enable location services on Android like a pro.
author of this article Apr 10,2020 / Posted by Felix Baynham

How can I enable location services on Android?

If you have a similar thought in mind, then this detailed guide on Android’s location services will come handy to you. You might already know that GPS is a default feature in Android that tracks our present location. From navigation to dating apps and games to riding services, GPS is needed in so many ways. Therefore, it is important to turn on GPS on Android to access these services and apps. In this post, I will let you know how to turn on location services on Android in different ways.

enable location services android 1

Part 1: Turn on Location Services on Android from Settings

If your Android device is functioning properly, then you can just visit its settings or control center to enable location services in it. Since it is a native feature in Android, you don’t need to download any app. To turn on location on Android from its settings on the control center, just follow these steps:

  1. For easy access, you can just go to the control center on Android by swiping down the notification panel. From here, just tap on the location icon to turn on GPS on Android.
  2. enable location services android 2
  3. If that won’t work, then just go to your phone’s Settings > Security & Location > Location and make sure that the location services option is enabled. In some Android versions, you can find it under Settings > General > Location or Settings > Privacy > Location as well.
  4. enable location services android 3
  5. Under the Location Services settings, you can also find options to set up different modes for GPS. Just enable high accuracy for location services on your phone.
enable location services android 4

Important Note:

Before you enable location services on Android, make sure that your device has a stable network. You can go to its settings to manually turn on the WiFi or Cellular Data option. Also, the Airplane Mode on your device should be disabled as well.

enable location services android 5

Part 2: Enable Location Services for Specific Android Apps

Sometimes, even after we turn on Google location on our device, it doesn’t get reflected on certain apps. Chances are that you would have not given these apps access to location services on your device. To check that, you can go to your phone’s settings and follow these quick steps (after turning on its location services).

  1. Firstly, go to your phone’s Settings > App Permissions and under the list of various permissions, select the location feature.
  2. Now, this will list various apps that can access your device’s location. You can enable (or disable) the location services for any app from here.
  3. enable location services android 6
  4. Besides that, you can also go to your phone’s Settings > Apps or Settings > App Info to get a list of all the installed apps. From here, you can just select an app that can’t access your phone’s location.
  5. This will display various details related to the app. Now, go to the “Permissions” section and make sure that the app has been granted the permission to access your device’s location.
enable location services android 7

Part 3: Turn on Location Services Programmatically on Android

There is also a solution to enable location services on Android programmatically. For this, you need to take the assistance of Android Studio or Android Developer Kit. Also, go to your phone’s Settings > About Phone and tap the Build Number 7 times to make sure its Developer Options are enabled. Once that is done, you can go to your phone’s Settings > Developer Options and turn on the USB Debugging feature too.

Please note that the process is a bit complicated and might change your device’s functioning. Therefore, you can consider this method to turn on GPS on Android programmatically as a last resort.

  1. To start with, launch Android Studio or Android SDK on your phone and work on a new project. Please ensure that you enter the correct version of your Android while working on a new project.
  2. enable location services android 8
  3. As the wizard would launch, you can choose to open a blank activity and give it an appropriate name and enter other details.
  4. enable location services android 9
  5. Android Studio will automatically load all the essential components and will present a screen like this.
  6. enable location services android 10
  7. Once that is loaded, go to its File > Project Structure > App > Dependencies. From here, choose to add a library dependency and manually enter the code “com.google.android.ms:play-services:8-4-0” to it.
  8. enable location services android 11
  9. Great! Now, browse to the Manifest.XML file that would be opened on the interface and right above the main activity, add the following code:
  10. <meta-data android:name="com.google.android.gms.version"

    android:value="@integer/google_play_services_version"/>

    enable location services android 12
  11. While staying in the Manifest file, go outside the application block and enter the following code:
  12. <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>

    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>

    enable location services android 13
  13. After that, go to the Main Activity Java file and locate the “Oncreate” method. Move your cursor outside the oncreate method and copy the code:
  14. private GoogleApiClient googleApiClient;

  15. In the end, you need to move inside the oncreate method and copy this code in it:
  16. if (googleApiClient == null) { googleApiClient = new GoogleApiClient.Builder(getApplicationContext()) .addApi(LocationServices.API) .build(); googleApiClient.connect();

    LocationRequest locationRequest = LocationRequest.create(); locationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY); locationRequest.setInterval(30 * 1000); locationRequest.setFastestInterval(5 * 1000); LocationSettingsRequest.Builder builder = new LocationSettingsRequest.Builder() .addLocationRequest(locationRequest);

    // **************************

    builder.setAlwaysShow(true); // this is the key ingredient

    // **************************

    PendingResult result = LocationServices.SettingsApi .checkLocationSettings(googleApiClient, builder.build()); result.setResultCallback(new ResultCallback()

    {

    @Override

    public void onResult(LocationSettingsResult result)

    {

    final Status status = result.getStatus();

    final LocationSettingsStates state = result .getLocationSettingsStates();

    switch (status.getStatusCode())

    {

    case LocationSettingsStatusCodes.SUCCESS:

    break;

    case LocationSettingsStatusCodes.RESOLUTION_REQUIRED:

    try {

    status.startResolutionForResult(MainActivity.this, 1000);

    } catch (IntentSender.SendIntentException e)

    {

    }

    break;

    case LocationSettingsStatusCodes.SETTINGS_CHANGE_UNAVAILABLE:

    break;

    }

    });

    }

    googleApiClient = new GoogleApiClient.Builder(this).addApi(AppIndex.API).build();

  17. That’s it! Now you can just connect your Android device to your system and run the module to turn on GPS programmatically on Android. Just make sure that the USB debugging feature on your phone should be enabled beforehand.
enable location services android 14

Part 4: Turn on Location on Android Remotely

Lastly, you should also know how to turn on GPS on Android phones remotely. For instance, if you have lost your device, then this feature can be used to track it from your computer. If you own a Samsung phone, then you can take the assistance of its native feature Find My Mobile to do that. Here are some quick steps that you can take to locate your lost Samsung phone.

  1. Beforehand, make sure that the Find My Mobile service is enabled on your phone. Just go to its Settings > Lock Screen & Security > Find My Mobile and turn it on from here.
  2. enable location services android 15
  3. Now, whenever your phone gets lost, just go to the official website of Find My Mobile and log-in with your Samsung ID and password.
  4. After logging in, you can see a list of various linked devices on the sidebar. Just select the lost Samsung and from the provided options, you can locate it or turn on its location.
  5. enable location services android 16
  6. If you choose to locate your device, then it will open a map-like interface on the screen displaying your phone’s location. You can zoom in/out the screen to get the exact location of your phone or enable the GPS feature if it isn’t on already.
enable location services android 17

That’s a wrap, everyone! Now when you know how to enable location services on Android, you can easily meet your requirements. As you can see, I have listed different techniques to turn on GPS on Android via its settings or even remotely. Though, if nothing else would work, then you can also follow this tutorial to turn on GPS on Android programmatically as well. Go ahead and try these solutions to turn on location services on Android and let me know if you still have queries about it.