title: do android volley have callback do something like java finally?
body: <p>I have to do something after the request finish. like dismiss a loading dialog</p>
  
  <p>I have to add <code>dialog.dismiss();</code> in every request for both onResponse() and onErrorResponse().</p>
  
  <p>Do volley have global callback? I want to have global callback in same fragment/activity to handle error/successful message</p>
  
  <pre><code>    JsonRequest jsonRequest = new JsonRequest
              (url, params, new Response.Listener&lt;JSONObject&gt;() {
                  @Override
                  public void onResponse(JSONObject response) {
                      dialog.dismiss();
                  }
              }, new Response.ErrorListener() {
  
                  @Override
                  public void onErrorResponse(VolleyError error) {
                      dialog.dismiss();
                  }
              }) {
      };
  </code></pre>