Top "Android-permissions" questions

Permissions in the AndroidManifest.

Why do I need the WRITE_EXTERNAL_STORAGE permission with getExternalCacheDir() on Android Lollipop?

My app writes (and reads) cache files to the getExternalCacheDir() location. Before Android Lollipop (API 21) I've been using this permission …

android android-file android-permissions
What is the difference between shouldShowRequestPermissionRationale and requestPermissions?

I am building an app that requires user location. I am following the Android training documentation from here which says: …

android android-permissions android-location
Android marshmallow dynamic permission change kills all application processes

Observation: Manually changing permission of Android application killed all processes for this application. Procedure: Go to Settings->Apps Select …

android android-permissions android-6.0-marshmallow
Android ACTIVITY_RECOGNITION Permission SDK 28 running on Android 10/Q (SDK 29)

My Android app targets SDK 28 and connects to Google Fit to upload data and read some other data. The app …

android android-permissions google-fit google-fit-sdk android-10.0
How do I create a shortcut for any app on desktop?

I think I've tried all the solutions I found on the internet, but no one worked - no force close, …

android android-permissions android-shortcut
API 26+: WRITE_EXTERNAL_STORAGE permission is always denied

I have switched my app to target API 27 and now it can't be granted WRITE_EXTERNAL_STORAGE permission -- grantResult …

android android-permissions android-8.0-oreo
How UID of an app determined during install in Android?

The following link gives a brief description about package installation process in android. http://java.dzone.com/articles/depth-android-package-manager I'm …

android android-source package-managers android-permissions uid
Share library project's manifest services and permissions

I want to develop a library project which consists of a GCMIntentService and it performs GCM registration process and receives …

android google-cloud-messaging android-library aidl android-permissions
Is there a way to check for manifest permission from code?

How do I check for a specific permission in the manifest.xml from code? I want to throw some exception …

android android-manifest android-permissions