How can I use Fused Location Provider inside a Service class?
<p>I need to get the user's location in the background, so I am trying to use Fused Location Provider inside my Service class.  I put the code below inside the <code>onStart()</code> method, but the context <code>MainActivity.getAppContext()</code> is not recognized.  What can I use in its place, since I am using it in my Service class?</p>

<pre><code>GoogleApi = new GoogleApiClient.Builder(MainActivity.getAppContext())
        .addConnectionCallbacks(this)
        .addOnConnectionFailedListener(this)
        .addApi(LocationServices.API)
        .build();
</code></pre>