java.lang.SecurityException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Android SDK 23 introduced a new way to handle permissions, so as a temporary workaround you can set it to build for SDK below 23. As a permanent solution you have to ask user during runtime for permissions with checkSelfPermission() or requestPermissions()

tip

You need the permission android.permission.READ_EXTERNAL_STORAGE. Write on the Android Manifest

tip

MANAGE_USERS has a protection level of signature|system, so your application must be signed with the platform key. Take a look on this https://goo.gl/nXsTvH for more information about it.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • UserManager getUserCount() (Jelly Bean)
    via Stack Overflow by Kedi
    ,
  • Fatal exception error
    via Stack Overflow by user2850116
    ,
  • Dealing with Download Listener in Android
    via Stack Overflow by Alok Kumar
    ,
  • securityexception
    via by Unknown author,
    • java.lang.SecurityException: Requires CAPTURE_VIDEO_OUTPUT or CAPTURE_SECURE_VIDEO_OUTPUT permission, or an appropriate MediaProjection token in order to create a screen sharing virtual display. at android.os.Parcel.readException(Parcel.java:1599) at android.os.Parcel.readException(Parcel.java:1552) at android.hardware.display.IDisplayManager$Stub$Proxy.createVirtualDisplay(IDisplayManager.java:484) at android.hardware.display.DisplayManagerGlobal.createVirtualDisplay(DisplayManagerGlobal.java:377) at android.hardware.display.DisplayManager.createVirtualDisplay(DisplayManager.java:537) at android.hardware.display.DisplayManager.createVirtualDisplay(DisplayManager.java:529) at android.hardware.display.DisplayManager.createVirtualDisplay(DisplayManager.java:480) at com.example.novoseltsev.applicationpopupwindow.MainActivity.onCreate(MainActivity.java:106) at android.app.Activity.performCreate(Activity.java:6237) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)

    Users with the same issue

    filipebatista
    12 times, last one,
    Hiren Amaliyar
    8 times, last one,
    Aravind
    86 times, last one,
    Indri Yunita
    199 times, last one,
    Unknown User
    4 times, last one,
    229 more bugmates