关于使用Android 上Gps的方法
1. 添加权限 

android.permission.INTERNET
android.permission.ACCESS_COARSE_LOCATION
android.permission.ACCESS_FINE_LOCATION

2.添加代码

LocationManager locationManager= (LocationManager)Activity.this.getSystemService(context.LOCATION_SERVICE);
locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,1000,0, new myLocationListener());

private class myLocationListener implements LocationListener()
{

        @Override
            public void onLocationChanged(Location location) {
                // TODO Auto-generated method stub

                   //当位置有改变的时候, 激活此方法, 地图操作的话一般使用  mMapController.animatiTo(mGeoPoint));
                mGeoPoint=new GeoPoint((int)(location.getLongitude()*1E6),(int)(location.getLatitude()*1E6) );
               
                mMapController.animateTo(mGeoPoint);

            }

            @Override
            public void onProviderDisabled(String provider) {
                // TODO Auto-generated method stub

        //当服务被禁用的时候激活此方法

            }

            @Override
            public void onProviderEnabled(String provider) {
                // TODO Auto-generated method stub

        //当位置服务可以使用的时候激活此方法

 

            }

            @Override
            public void onStatusChanged(String provider, int status, Bundle extras) {
                // TODO Auto-generated method stub
        //当服务的可使用状态在发生切换的时候激活此方法
            }

}