How to make a Volley class a public method
问题 I have to call web service in multiple classes I am using Volley . so what should I do in onresponse method to trigger the other class for the response? I want to make syncData as a generic function for my all classes. public String syncData(Context mContext, String url) { try { RequestQueue queue = Volley.newRequestQueue(mContext); JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() { @Override public void onResponse