title: Missing permissions required by LocationManager
body: <p>Android Studio 3.4.</p>
  
  <p>A device on android 6.0</p>
  
  <p>in manifest.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
            package="com.myproject"&gt;
  
  
      &lt;uses-permission android:name="android.permission.CAMERA"/&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_GPS"/&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/&gt;
      &lt;uses-permission android:name="android.permission.CALL_PHONE"/&gt;
      &lt;uses-permission android:name="android.permission.GET_TASKS"/&gt;
      &lt;uses-permission android:name="android.permission.INTERNET"/&gt;
      &lt;uses-permission android:name="android.permission.READ_PHONE_STATE"/&gt;
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/&gt;
      &lt;uses-permission android:name="md.qsystems.android.tango.permission.MAPS_RECEIVE"/&gt;
      &lt;!-- MAP --&gt;
      &lt;uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/&gt;
  </code></pre>
  
  <p>In my simple class (no activity/fragment) I have:</p>
  
  <pre><code>public class LocationHelper {
  
  if (locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER)) {
                  locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locListener);
              }
  </code></pre>
  
  <p>I have compile error:</p>
  
  <pre><code>Missing permissions required by LocationManager.requestLocationUpdates: android.permission.ACCESS_COARSE_LOCATION or android.permission.ACCESS_FINE_LOCATION 
  
  }
  </code></pre>