Application force close in one cell phone when trying to get location from GPS, but in the other one it works
问题 Im trying to get an adress trough the gps, converting the coordinates to my location. I am using this code: latitude1 = (location.getLatitude()); longitude2= (location.getLongitude()); JSONObject ret = getLocationInfo(); JSONObject location2; String location_string; try { location2 = ret.getJSONArray("results").getJSONObject(0); location_string = location2.getString("formatted_address"); Log.d("test", "formattted address:" + location_string); StringRua = (" " + location_string); } catch