I have map activity in my application. I am trying to request permission to access it, but the permission to request is not displayed. I have no idea why ...
This is my complete code:
public class MapsActivity extends FragmentActivity implements OnMapReadyCallback { private static final String FIREBASE_URL="https://****.firebaseio.com/"; private Firebase firebaseRef; private LocationManager locationManager; private GoogleMap mMap; SupportMapFragment mapFrag; boolean bPermissionGranted; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_maps2); Firebase.setAndroidContext(this); firebaseRef = new Firebase(FIREBASE_URL);
In the end, the toast "came here 2 show." I think this is because requests do not appear. Do I need to write something in the manifest other than this line ?:
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
Maybe I need to write something to use these permissions?
After looking again at logcat, I found this log I/Choreographer: Skipped 46 frames! The application may be doing too much work on its main thread. I/Choreographer: Skipped 46 frames! The application may be doing too much work on its main thread.
What does it mean?
java android android permissions
olash12345 Apr 10 '16 at 12:21 2016-04-10 12:21
source share