How to bind Json response to class using volley
<p>In my application, I want to bind <code>Json response</code> to a target class using <code>Volley library</code>, But am not able to do that.</p>

<p>My Code: </p>

<pre><code>    @Override
    protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    registerComponentDownload(GalleryParser.class, Const.api.URL_GALLERY);
}//on create

private void makeJsonObjectRequest(final Class&lt;? extends BaseModel&gt; className, String urlJsonArry) {

    JsonObjectRequest jsonObjectRequest=new JsonObjectRequest(Request.Method.GET,urlJsonArry,null, new Response.Listener&lt;JSONObject&gt;() {
        @Override
        public void onResponse(JSONObject response) {
            //start gallery activity
        }
    } , new Response.ErrorListener() {
        @Override
        public void onErrorResponse(VolleyError error) {

        }
    });
    AppController.getInstance().addToRequestQueue(jsonObjectRequest);
}
private void registerComponentDownload(Class&lt;? extends BaseModel&gt; aClass, String url) {
    makeJsonObjectRequest(aClass,Const.buildUrl(url));
}
</code></pre>

<p>}</p>

<p>Is it possible to get response in class? Or am trying in wrong direction.</p>

<p>Please suggest me.</p>

<p>Thank you. </p>