locationListener=new LocationListener() {
public void onLocationChanged(Location location) {
if(location != null){
point1=new GeoPoint((int)(location.getLatitude()*1e6),(int)(location.getLongitude()*1e6));
//mSearch.reverseGeocode(point1);
mMapView.getController().animateTo(point1);
}
}
这个point1 这个点我想直接用,在这个点上加自定义的图片,但是一用就报错,空指针异常,但是地图已经定位到我当前的位置了啊!!!妈蛋要疯了好吗!!! 。。谁知道为什么啊!!!求大神就啊好吗。。。。。T T