title: Android Not Resolving Volley Method.GET
body: <p>I am new to Android, just trying to use Volley as instructed in the Android website but don't seam to get this right.</p>
  
  <p>This line seems to causing the trouble:</p>
  
  <pre><code>StringRequest stringRequest = new StringRequest(VoiceInteractor.Request.Method.GET, url,
  </code></pre>
  
  <p>and the error is:</p>
  
  <pre><code>Error:(32, 92) error: cannot find symbol variable Method
  </code></pre>
  
  <p>MainActivity.java:</p>
  
  <pre><code>package com.jorc.volley;
  
  import android.app.VoiceInteractor;
  import android.os.Bundle;
  import android.support.v7.app.AppCompatActivity;
  import android.widget.TextView;
  
  import com.android.volley.RequestQueue;
  import com.android.volley.Response;
  import com.android.volley.VolleyError;
  import com.android.volley.toolbox.StringRequest;
  import com.android.volley.toolbox.Volley;
  
  public class MainActivity extends AppCompatActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
            final TextView mTextView = (TextView) findViewById(R.id.text);
              // Instantiate the RequestQueue.
                      RequestQueue queue = Volley.newRequestQueue(this);
                      String url ="http://www.google.com";
  
              // Request a string response from the provided URL.
                      StringRequest stringRequest = new StringRequest(VoiceInteractor.Request.Method.GET, url,
                              new Response.Listener&lt;String&gt;() {
                                  @Override
                                  public void onResponse(String response) {
                                      // Display the first 500 characters of the response string.
                                      mTextView.setText("Response is: "+ response.substring(0,500));
                                  }
                              }, new Response.ErrorListener() {
                          @Override
                          public void onErrorResponse(VolleyError error) {
                              mTextView.setText("That didn't work!");
                          }
                      });
              // Add the request to the RequestQueue.
                      queue.add(stringRequest);
      }
  }
  </code></pre>