Android Context Check isLocationEnabledGPS(Context c)

Here you can find the source of isLocationEnabledGPS(Context c)

Description

is Location Enabled GPS

License

Open Source License

Declaration

public static boolean isLocationEnabledGPS(Context c) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import android.content.Context;
import android.location.LocationManager;

public class Main {
    public static boolean isLocationEnabledGPS(Context c) {
        LocationManager lm = (LocationManager) c
                .getSystemService(Context.LOCATION_SERVICE);
        return lm.isProviderEnabled(LocationManager.GPS_PROVIDER);
    }/* w w w .  j  ava  2 s  .  co  m*/
}

Related

  1. isGpsEnabled(Context context)
  2. isHeadsetPluggedIn(Context context)
  3. isInstalledThroughPlayStore(final Context context)
  4. isLandscape(Context context)
  5. isLandscape(final Context context)
  6. isMobile(Context context)
  7. isMobilityInstalled(Context context)
  8. isNetAvailable(Context context)
  9. isOnline(Context c)