作者satangn (改变,就对了)
看板AndroidDev
标题[问题] Volley使用JsonArrayRequest如何post??
时间Tue Nov 18 23:23:58 2014
初次发文,想问问各位有经验的前辈们~
Volley使用StringRequest和JSONObjectRequest都没问题,
但是当响应格式改为JSONArray时,引数没有Method,无法修改
查了一下发现Google发的Volley,JSONArray仅支援GET方式而已,
那如果Service的回传资料为JSONArray且限定Post方式,我该如何去做呢??
请各位前辈不赁指教啊~谢谢!!
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 115.43.0.42
※ 文章网址: http://webptt.com/cn.aspx?n=bbs/AndroidDev/M.1416324241.A.8D9.html
1F:推 freesamael: 继承 JsonArrayRequest 或 JsonRequest<JSONArray> 11/19 21:45
2F:→ freesamael: 自己改就好了 11/19 21:45
3F:→ satangn: 哦喔! 这方式我也有查到过,还没亲自实证,谢谢哦~ 11/19 22:53