摘要:
今天学习了用户定位(GPS),写下此文,以便查阅。 判断设备GPS是否打开:1 public boolean openGPS(){2 LocationManager lm = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);3 boolean b = false;4 if(lm.isProviderEnabled(android.location.LocationManager.GPS_PROVIDER)){5 b = true... 阅读全文
posted @ 2011-10-18 17:37 honesty_fly 阅读(127) 评论(0) 推荐(0)
浙公网安备 33010602011771号