-2
// URL
String CategoryUrl =「http://lazurd.com/shop/api/rest/custom/categories/」;BasicNetwork.performRequest:凌亂的意外響應代碼500
StringRequest request = new StringRequest(Request.Method.GET,CategoryUrl,new Response.Listener<String>() {
@Override
public void onResponse(String response) {
Log.d("CODDE",response);
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError volleyError) {
Toast.makeText(MainActivity.this,"ERROR",Toast.LENGTH_LONG).show();
}
});
RequestQueue queue = Volley.newRequestQueue(this);
queue.add(request);
BasicNetwork.performRequest:意外的響應碼500爲http://lazurd.com/shop/api/rest/custom/categories/
我以前不工作相同。 –