Switching between GPS_PROVIDER and NETWORK_PROVIDER in android
<p>I am developing an application in which I need to find the GPS location of the place.</p>

<p>The <code>NETWORK_PROVIDER</code> is not accurate and <code>GPS_PROVIDER</code> works only when I am outside the building.</p>

<p>Can anyone tell me, how I can switch between these two providers. </p>

<p>If possible please attach code.</p>

<p>Thanks</p>
