How to enable the GPS setting automatic
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4721449/enable-gps-programatically-like-tasker">Enable GPS programatically like Tasker</a>  </p>
</blockquote>



<p>Anybody know how to enable the GPS setting automatic? Seems the 
"Toggle Settings" app can handle it, but I want to force open in my app sdk 2.1.
some people said </p>

<pre><code> "Method m =locationManager.getClass().getMethod("updateProviders", new Class[] {});
                m.setAccessible(true);
                m.invoke(locationManager, new Object[]{});"
</code></pre>

<p>but  in sdk2.1  locationManager class donot have updateProviders.
couled you give me some directions or code?</p>

<p>Please help me if you have time. </p>
