isProviderEnabled(LocationManager.NETWORK_PROVIDER) return false
<p>I am using <code>NETWORK_PROVIDER</code> to get <code>latitude</code> and <code>longitude</code> of the place. </p>

<p>I'v already check the setting in the "location &amp; security" and enable "use wireless networks". But <code>"isProviderEnabled(LocationManager.NETWORK_PROVIDER)"</code> always return <code>false</code>. </p>

<p>Can anyone help me? Thank you in advance!</p>

<p>Here is my code :</p>

<pre><code>LocationManager locManager=(LocationManager) getSystemService(Context.LOCATION_SERVICE);
boolean isEnableGPS=locManager.isProviderEnabled(LocationManager.GPS_PROVIDER);
boolean isEnableNTW=locManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER);
Log.d(TAG, isEnableGPS+", "+isEnableNTW);
</code></pre>

<p>permission in the AndroidMainfest.xml</p>

<pre><code>&lt;uses-permission android:name="android.permission.INTERNET"/&gt;
&lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/&gt;
&lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/&gt;
</code></pre>
