title: Volley RequestQueue is not working (Kotlin)
body: <p>I have a <code>LoginActivity</code> that has a very simple layout with 2 <code>EditText</code>'s (username and password) and 1 <code>Button</code> (login button).</p>
  <p>I want to perform a POST request to a server when the login button is pressed.
  I am using Volley.</p>
  <p>Here's the code</p>
  <pre class="lang-kotlin prettyprint-override"><code>class LoginActivity : AppCompatActivity() {
      private lateinit var loginButton: Button
      private lateinit var loginNameEditText: EditText
      private lateinit var passwordEditText: EditText
      private lateinit var queue: RequestQueue
  
      override fun onCreate(savedInstanceState: Bundle?) {
          super.onCreate(savedInstanceState)
          setContentView(R.layout.activity_login)
  
          loginButton = findViewById(R.id.loginButton)
          loginNameEditText = findViewById(R.id.loginName)
          passwordEditText = findViewById(R.id.loginPW)
  
          loginButton.setOnClickListener {
              val name: String = loginNameEditText.text.toString()
              val password: String = passwordEditText.text.toString()
  
              if (name.isEmpty() || password.isEmpty()) {
                  Toast.makeText(this, &quot;Check your input!&quot;, Toast.LENGTH_SHORT).show()
              }
              else {
                  val url = &quot;localhost/login/name/$name/password/$password&quot;
  
                  queue = Volley.newRequestQueue(this)
  
                  val stringRequest = StringRequest(Request.Method.POST,
                      url,
                      { response -&gt;
                          println(response)
                          if (response == &quot;0&quot;) {
                              finish()
                          }
                          else {
                              Toast.makeText(this, &quot;Incorrect name or password!&quot;, Toast.LENGTH_SHORT).show()
                          }
                      },
                      { error -&gt; {}}
                  )
  
                  stringRequest.setShouldCache(false)
                  queue.add(stringRequest)
              }
          }
      }
  }
  </code></pre>
  <p>When login is successful, the server sends &quot;0&quot; as response.</p>
  <p>But no request is being made by Volley. How can I fix this?</p>