public void onResume() {
super.onResume();
final LocationManager manager = (LocationManager) getSystemService( Context.LOCATION_SERVICE );
boolean bGPS = manager.isProviderEnabled( LocationManager.GPS_PROVIDER );
boolean bNETWORK = manager.isProviderEnabled( LocationManager.NETWORK_PROVIDER );
Log.e("", "bGPS : " + bGPS + ", bNETWORK : " + bNETWORK);
if ( !bGPS || !bNETWORK ) {
buildAlertMessageNoGps();
}
...........
이렇게 사용하고 있네요