Top "Android-securityexception" questions

Thrown when a security manager check fails.

Android: Permission Denial: starting Intent with revoked permission android.permission.CAMERA

I'm trying to start a ACTION_IMAGE_CAPTURE activity in order to take a picture in my app and I'm …

android android-securityexception
java.lang.SecurityException: MODE_WORLD_READABLE no longer supported

The exception only occurs in Android 7.0 Nougat (emulator) devices. java.lang.SecurityException: MODE_WORLD_READABLE no longer supported My code: …

android android-sharedpreferences android-7.0-nougat android-securityexception
Android SecurityException: Admin does not own the profile

I have a device manager application and I am trying to use setScreenCaptureDisabled(..) function of DevicePolicyManager class available since API 21. …

android android-activity android-5.0-lollipop android-securityexception
Permission Denial: writing android.support.v4.content.FileProvider uri

Good day.I have an weird issue to which none of examples in stack overflow has worked.I am opening …

android android-intent crop android-7.0-nougat android-securityexception
Unable to get phone number from device inspite of declaring required permissions in android manifest

I am trying to get phone number from my device programmatically. I am trying with the following code: TelephonyManager tMgr = (…

android telephonymanager android-securityexception android-security
Lock or turn off the screen programmatically

I want to turn off / lock the screen of my device programmatically. For the moment, when I try : DevicePolicyManager mDPM = (…

android android-manifest android-securityexception
Dual apps can't access storage path /storage/emulated/999/Download/somefile.pdf

I am trying to download a file from server to Download folder of andorid As expected it is working fine …

android android-securityexception