android 如何判断GPS,NETWORK开启状态
boolean GPS_status = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);?? ? ? ?boolean NETWORK_status = locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER);?? ? ? ?String status = "";?? ? ? ?if(GPS_status){?? ? ? ? status += "GPS 开启";?? ? ? ?}else{?? ? ? ? status += "GPS 未开启";?? ? ? ?}?? ? ? ?if(NETWORK_status){?? ? ? ? status += "NETWORK 开启";?? ? ? ?}else{?? ? ? ? status += "NETWORK 未开启";?? ? ? ?}