到目前为止,我已经成功地从网站上获得了答复,但是该答复不是我所需要的。我需要物品详细信息,例如(名称,价格,图片)
JsonObjectRequest request = new JsonObjectRequest("https://res1.mabusinesshub.com/menu/", null,
new Response.Listener<JSONObject>() {
@Override
public void onResponse(JSONObject response) {
mTextView.setText(response.toString());
}
},
new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
mTextView.setText(error.toString());
}
}
);
Volley.newRequestQueue(this).add(request);