我正在使用mylocation类从gps提供程序获取数据。代码如下:
MyLocation.LocationResult locationResult = new MyLocation.LocationResult() {
@Override
public void gotLocation(Location location) {
//Got the location!
// for phone
//currentLocation = new GeoPoint((int) (locatio
我想使用overlay指向Google地图位置。为此,将把纬度和经度值分配给GeoPoint,但它只接受int值。
我如何给它赋一个双精度的值?或者,是否有其他解决方案可以指向确切的位置?
point = new GeoPoint((int)t.getLati(),(int)t.getLongi())
任何帮助都将不胜感激。