내가 사용하려는 발리 내 코드에 요청 유형을 사용해야합니다. 아래에서 내 응답에 사용해야합니다. 이해할 수 없습니다. URL ::: http://localhost/api/product/read.php발리 JSON 응답
{
"data":[
{
"category_id":"1",
"category_name":"Today's Recipe",
"recipes":[
{
"id":"1",
"recipe_name":"Peanut, and Chilli Noodles",
"ingredients":"Serves: 4 \r\n\r\n250g (9 oz) fresh Chinese ,
"prepration":"Prep:15min Cook:10min Ready in:25min \r\n\r\nCook
noodles in a large pot of boiling water until done. have
chilli paste, use minced red chilli to taste."
}
]
},
을하는 데 도움이 JsonObjectRequest https://developer.android.com/training/volley/request.html 당신이 JsonRequest를 사용해야합니다 – joao86
. 이 블로그의 내 대답을 참조하십시오. https://stackoverflow.com/questions/47936955/i-am-unable-to-make-a-network-call-using-volley-i-have-tried-many-solutions -하지만/47937120 # 47937120 –
내가 에러 표시 ::: com.android.volley.ParseError 다음 된 JSONObject 요청을 사용 org.json.JSONException : java.lang.String 타입의 값에 연결이 된 JSONObject로 변환 할 수 없습니다 –