title: Volley Get Request: onResponse is never called
body: <p>im pretty new to Android Studio and I'm trying to build a Get Request using Volley, the Server response is a JsonObject. I tested the code with breakpoints but I wonder why I don't jump into onResponse or why it won't work.</p>
  
  <p>Here's my Code of the Get Method:</p>
  
  <pre><code>public Account GetJsonObject(String urlExtension, String name, Context context) {
      String baseURL = "myurl.com/api";
      baseURL += urlExtension + "/" + name; 
      // url will look like this: myurl.com/api/user/"username"
  
      final Account user = new Account("","");
      //Account(name, email)
      RequestQueue requestQueue;
      requestQueue = Volley.newRequestQueue(context);
  
      JsonObjectRequest jsonObject = new JsonObjectRequest(Request.Method.GET, baseURL,null,
              new Response.Listener&lt;JSONObject&gt;() {
  
                  // Takes the response from the JSON request
                  @Override
                  public void onResponse(JSONObject response) {
                      try {
                          JSONObject obj = response.getJSONObject("userObject");
  
                          String username = obj.getString("Username");
                          String email = obj.getString("Email");
                          user.setUsername(username);
                          user.setEmail(email);
  
                      }
                      catch (JSONException e) {
                          e.printStackTrace();
                      }
                  }
              },
              new Response.ErrorListener() {
                  @Override
                  public void onErrorResponse(VolleyError error) {
                  }
              });
  
  
      requestQueue.add(jsonObject);
      return user;
      }
  </code></pre>