title: Running Volley request in background service
body: <p>I want to use Volley to pull some JSON data from a Service class, but I keep receiving File Cache crashes at <code>RequestQueue mRequestQueue = Volley.newRequestQueue(this);</code> in the service class.</p>
  
  <p>It works fine in my main application.</p>
  
  <p><strong>Edit</strong></p>
  
  <blockquote>
    <p>FATAL EXCEPTION: main
                                                                              Process: com.xxx.yyy, PID: 28290
                                                                              java.lang.RuntimeException: Unable to instantiate service
    com.idlctech.etherpooler.PoolerService:
    java.lang.NullPointerException: Attempt to invoke virtual method
    'android.content.Context
    android.content.Context.getApplicationContext()' on a null object
    reference
                                                                                  at
    android.app.ActivityThread.handleCreateService(ActivityThread.java:3121)
                                                                                  at android.app.ActivityThread.-wrap5(ActivityThread.java)
                                                                                  at
    android.app.ActivityThread$H.handleMessage(ActivityThread.java:1530)
                                                                                  at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                                  at android.os.Looper.loop(Looper.java:154)
                                                                                  at android.app.ActivityThread.main(ActivityThread.java:5969)
                                                                                  at java.lang.reflect.Method.invoke(Native Method)
                                                                                  at
    com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:801)
                                                                                  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:691)
                                                                               Caused by: java.lang.NullPointerException: Attempt to invoke virtual
    method 'android.content.Context
    android.content.Context.getApplicationContext()' on a null object
    reference
                                                                                  at
    android.content.ContextWrapper.getApplicationContext(ContextWrapper.java:106)
                                                                                  at
    xxx.yyy.zzz.PoolerService.(PoolerService.java:38)
                                                                                  at java.lang.Class.newInstance(Native Method)
                                                                                  at
    android.app.ActivityThread.handleCreateService(ActivityThread.java:3118)
                                                                                  at android.app.ActivityThread.-wrap5(ActivityThread.java) 
                                                                                  at
    android.app.ActivityThread$H.handleMessage(ActivityThread.java:1530) 
                                                                                  at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                                                  at android.os.Looper.loop(Looper.java:154) 
                                                                                  at android.app.ActivityThread.main(ActivityThread.java:5969)</p>
  </blockquote>