LocationManager.GPS_PROVIDER : Location « Hardware « Android






LocationManager.GPS_PROVIDER

 

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

class GpsUtil {
  public static boolean checkStatus(Context context){
    LocationManager locationManager = (LocationManager)
      context.getSystemService(Context.LOCATION_SERVICE);
    return locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);
  }
}

   
  








Related examples in the same category

1.Location service and LocationManager
2.Location service
3.Using LocationManager
4.My location
5.Display GEO location
6.Using location service for the weather
7.Using Intent to go to a geo location
8.Location based service
9.My location and Google Map
10.Custom Location Overlay
11.Get my location
12.Geo location and Google Map
13.Location Tracking
14.A light pool of objects that can be resused to avoid allocation.
15.extends android.location.Location
16.Geo Location Util
17.C:\Java_Dev\WEB\dev\android\weatherforecastsystem-read-only\com\hci\pwf\LocationUtil.java
18.upload Data with Geo location
19.Copy a file from one location to another.
20.Location util