コード例 #1
0
    @Override
    protected ArrayList<PlaceLocation> doInBackground(String... jsonData) {

      JSONObject jObject;

      try {
        jObject = new JSONObject(jsonData[0]);

        PlaceDetailsJSONParser placeDetailsJsonParser = new PlaceDetailsJSONParser();
        // Getting the parsed data as a List construct
        locationList = placeDetailsJsonParser.getLocation(jObject);

      } catch (Exception e) {
        Log.d("Exception", e.toString());
      }
      return locationList;
    }