How to turn GPS ON in background in android?
<p>I am getting the GPS value in background. For that Am using <code>Service</code> for background process. If GPS is disabled means, I used the below code.</p>

<pre><code>Intent myIntent = new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS); 
</code></pre>

<p>It is working when the app is running in the foreground, but it is not working in the background.
I also use the <code>AlarmManager</code> and a <code>BroadcastReceiver</code>.</p>

<p>Can anyone please help me?</p>
