if (locationManager != null && activity!=null) {
boolean isGPSenable = locationManager
.isProviderEnabled(LocationManager.GPS_PROVIDER);
boolean isAGPSenable = locationManager
.isProviderEnabled(LocationManager.NETWORK_PROVIDER);
if (!isGPSenable && !isAGPSenable) {
}