0
if (isOnline()) {
                    Geocoder geocoder = new Geocoder(con, Locale.getDefault());
                    p = new GeoPoint((int) (location.getLatitude() * 1E6),
                            (int) (location.getLongitude() * 1E6));
                    List<Address> add = null;
                    try {
                        add = geocoder.getFromLocation(p.getLatitudeE6() / 1E6,
                                p.getLongitudeE6() / 1E6, 1);

                    } catch (IOException e) {
                        // TODO Auto-generated catch block
                        // e.printStackTrace();
                    }
}

昨天,我得到地址是好的,但是今天,我不能得到地址(add=null)。

4

0 回答 0