Code example for LocationManager

Methods: getAllProviders

0
        context.startActivity(new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS));
    } 
    public static boolean isGpsDevice(Context context) 
    { 
        LocationManager manager = getManager(context);
        return manager.getAllProviders().contains(LocationManager.GPS_PROVIDER);
    } 
 
    public static boolean isGpsEnabled(Context context)
    { 
        LocationManager manager = getManager(context);
        return manager.isProviderEnabled(LocationManager.GPS_PROVIDER);
    } 
 
    public static IntentFilter getFilter()
    { 
        return new IntentFilter(PROVIDERS_CHANGED);
    } 
 
    public static void startStatusCheck(final Context context)