//原始GPS坐标
GeoPoint point = new GeoPoint((int) (location.getLatitude() * 1E6), (int) (location.getLongitude() * 1E6));
Toast.makeText(this, location.getLatitude()+" "+location.getLongitude(), Toast.LENGTH_SHORT).show();//坐标转换
point= CoordinateConvert.fromWgs84ToBaidu(point);
//修改坐标
location.setLatitude(point.getLatitudeE6()/1E6);
location.setLongitude(point.getLongitudeE6()/1E6);
Toast.makeText(this, location.getLatitude()+" "+location.getLongitude(), Toast.LENGTH_SHORT).show();