android gps

NetProvider:

NetProvider
LocationManager locationManager=
                        (LocationManager)getSystemService(Context.LOCATION_SERVICE);
location=locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);
                button.setText(Double.toString(location.getLatitude())+'\n'+Double.toString(location.getLongitude()));
posted @ 2012-09-11 09:34  Epirus  阅读(187)  评论(0编辑  收藏  举报