title: Why does locationManager.getBestProvider() returns null? (Nexus 5x)
body: <p>I am trying to get device (Nexus 5x) location by following a tutorial. But its not working and I found out, that the line </p>
  
  <pre><code>locationManager.getBestProvider(new Criteria(), false);
  </code></pre>
  
  <p>always returns null.</p>
  
  <p>Here is my manifest content:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="lt.wilkas.locationdemo"&gt;
  
      &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/&gt;
      &lt;uses-permission android:name="android.permission.INTERNET"/&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@mipmap/ic_launcher"
          android:label="@string/app_name"
          android:supportsRtl="true"
          android:theme="@style/AppTheme"&gt;
          &lt;activity android:name=".MainActivity"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
      &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p>Here is my onCreate content:</p>
  
  <pre><code>    @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          //initialize location manager
          locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
  
          //get best provider
          provider = locationManager.getBestProvider(new Criteria(), false);
  
          if (provider == null) {
              Log.i("i", "provider ir null");
          } else {
              Log.i("i", provider);
          }
  }
  </code></pre>
  
  <p>What am I doing not right?</p>