title: Android service context error
body: <p>I'm trying to build a service that continuously sends http requests with Volley:</p>
  
  <pre><code>public class inviadati extends Service {
  </code></pre>
  
  <p>I read that Service is a context, so I should use "this" to refer to it like this</p>
  
  <pre><code>public inviadati() {
          RequestQueue mRequestQueue = Volley.newRequestQueue(this);
  </code></pre>
  
  <p>But I keep getting a NullPointerException on the RequestQueue line. Any thoughts?</p>
  
  <p>P.S I already tried getApplicationContext(), getActivity(), getBaseContext() but none of them worked.</p>