Top "Android-permissions" questions

Permissions in the AndroidManifest.

How to check permission in fragment

I want to check a permission inside a fragment. my code: // Here, thisActivity is the current activity if (ContextCompat.checkSelfPermission(…

android android-fragments android-permissions
Android permission doesn't work even if I have declared it

I'm trying to write code to send an SMS from an Android app, but when I try to send the …

java android android-permissions
Android location permissions

In my Android application I'm willing to use GPS locations. What are the main permissions that I should included in …

android gps triangulation android-permissions
SYSTEM_ALERT_WINDOW - How to get this permission automatically on Android 6.0 and targetSdkVersion 23

Facebook, Evernote, Pocket - all apps get this permission on Android 6.0 automatically, even though they are targeting 23 (targetSdkVersion=23). There has …

android android-permissions android-6.0-marshmallow target-sdk system-alert-window
Permission Denial: startForeground requires android.permission.FOREGROUND_SERVICE

Lately we have suddenly been seeing a few of the following stack traces. Why could that be? This is from …

android android-service android-permissions
checkSelfPermission method is not working in targetSdkVersion 22

CheckSelfPermission method is not working as expected and it is always returning zero in android 6.0(Marshmallow). Because the target sdk …

android android-permissions
Listing permissions of Android application via adb

Using adb, how can I find out the which permissions an Android application requires? Because I want to display the …

android permissions adb android-permissions aapt
Permission denied (missing INTERNET permission?): But permission is given

I'm trying to call a httpClient and the response is "Permission denied (missing INTERNET permission?)". In the normal browser of …

android android-permissions