title: [Android-Location]Can not get Longitude and Latitude from LocationManager
body: <p>I used LocationManager to get user address by "Longitude" and "Latitude" but when i call location.getLongitude() and location.getLatitude(), it return 0 back to me. I manage to Google but have nobody meet my issue.</p>
  
  <p>Mr.Jeremy Edwards suggest me that:</p>
  
  <blockquote>
    <p>Make sure that network based location is enabled in the phone's settings. You can detect this situation and prompt the user to enable it if you really need it.
    I believe this is the line of code to launch this activity.</p>
  </blockquote>
  
  <p>I do that but it can help. Sometime that give me Longitude and Latitude, some time not.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>String locationProvider = LocationManager.NETWORK_PROVIDER;
  LocationManager locationManager = (LocationManager) this
              .getSystemService(Context.LOCATION_SERVICE);
  Location location = locationManager
              .getLastKnownLocation(locationProvider);
  </code></pre>
  
  <p>The 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>
  
  <p>Can anyone help me? Thank you in advance!</p>