title: Android RequestQueue
body: <p>When I want to make a post request (with the volley libary) in a class called checkUserLogin I receive an error in my Queue:</p>
  
  <p><a href="https://i.stack.imgur.com/AAyZ5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AAyZ5.png" alt="enter image description here"></a></p>
  
  <p>This is my code:</p>
  
  <pre><code>private boolean request() {
      StringRequest stringRequest = new StringRequest(Request.Method.POST, LOGIN_URL,
              new Response.Listener&lt;String&gt;() {
                  @Override
                  public boolean onResponse(String response) throws JSONException {
                      checkLogin(response);
                      if(success.equals("true")){
                          return true;
                      }
                      else{
                          return false;
                      }
                  }
              },
              new Response.ErrorListener() {
                  @Override
                  public boolean onErrorResponse(VolleyError error) {
                      return false;
                  }
              }) {
          @Override
          protected Map&lt;String, String&gt; getParams() throws AuthFailureError {
              Map&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();
              map.put(EMAIL, email);
              map.put(PASSWORD, password);
              return map;
          }
      };
  
      RequestQueue requestQueue = Volley.newRequestQueue(this);
      requestQueue.add(stringRequest);
      return false;
  }
  </code></pre>
  
  <p>What's am I doing wrong with my RequestQueue?</p>