1
> public void makeJsonObjectRequest(Long s,Double lat, Double lon, int
> timezone) {
> String urlJsonObj = "http://projet.dev.e-njaz.com/api/example/getPrayerTimes/" + s + "/" +
> lat + "/" + lon + "/" + timezone;
> JsonObjectRequest jsonObjReq = new JsonObjectRequest(Request.Method.GET,
> urlJsonObj, null, new Response.Listener<JSONObject>() {
> @Override
> public void onResponse(JSONObject response) {
> Log.d(TAG, response.toString());
> try {
> DateFormat i=new SimpleDateFormat("HH:mm");
> DateFormat o = new SimpleDateFormat("KK:mm a");
> prayertimes.setStr_asarr(response.toString());
> prayertimes.str_ishaa=o.format(i.parse(response.getString("6").toString()));
> } catch (JSONException e) {
> e.printStackTrace();
> } catch (ParseException e) {
> e.printStackTrace();
> }
> }
>
> }, new Response.ErrorListener() {
> @Override
> public void onErrorResponse(VolleyError error) {
> VolleyLog.d(TAG, "Error: " + error.getMessage());
> Toast.makeText(getApplicationContext(),
> error.getMessage(), Toast.LENGTH_SHORT).show();
> }
> });
> AppController.getInstance().addToRequestQueue(jsonObjReq);
>
> }
hello evrybody,我需要返回函數onReponse中的對象付款人次,請你幫我。當我改變onReponse的類型返回時,我有一個錯誤。我需要返回排球庫的結果