Unable to parse response from server

不能用wifi,用3g

3G好像有时也不行。。。郁闷了。。。

不行

http://muzilihao.iteye.com/blog/1459137

[url]publicstaticGeoPointgetLatLong(JSONObjectjsonObject){

Doublelon=newDouble(0);

Doublelat=newDouble(0);

try{

lon=((JSONArray)jsonObject.get("results")).getJSONObject(0)

.getJSONObject("geometry").getJSONObject("location")

.getDouble("lng");

lat=((JSONArray)jsonObject.get("results")).getJSONObject(0)

.getJSONObject("geometry").getJSONObject("location")

.getDouble("lat");

}catch(Exceptione){

e.printStackTrace();

}

returnnewGeoPoint((int)(lat*1E6),(int)(lon*1E6));

}

[/url]

相关推荐