java.lang.RuntimeException: Unable to start activity ComponentInfo{com.liveultrahealthy.violet/com.liveultrahealthy.violet.ui.settings.SettingsActivity}: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/audio/media/50 from pid=19062, uid=10187 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()

GitHub | consp1racy | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Ringtone permissions

    GitHub | 8 months ago | consp1racy
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.liveultrahealthy.violet/com.liveultrahealthy.violet.ui.settings.SettingsActivity}: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/audio/media/50 from pid=19062, uid=10187 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()

    Root Cause Analysis

    1. java.lang.RuntimeException

      Unable to start activity ComponentInfo{com.liveultrahealthy.violet/com.liveultrahealthy.violet.ui.settings.SettingsActivity}: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/audio/media/50 from pid=19062, uid=10187 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()

      at android.os.Parcel.readException()
    2. Android Platform
      ContentResolver.query
      1. android.os.Parcel.readException(Parcel.java:1546)
      2. android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:185)
      3. android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:137)
      4. android.content.ContentProviderProxy.query(ContentProviderNative.java:421)
      5. android.content.ContentResolver.query(ContentResolver.java:513)
      6. android.content.ContentResolver.query(ContentResolver.java:448)
      6 frames
    3. com.lge.media
      RingtoneManagerEx.getActualDefaultRingtoneUri
      1. com.lge.media.RingtoneManagerEx.getActualDefaultRingtoneUri(RingtoneManagerEx.java:244)
      1 frame
    4. Android Platform
      RingtoneEx.getTitle
      1. android.media.RingtoneEx.getTitle(RingtoneEx.java:177)
      2. android.media.RingtoneEx.getTitle(RingtoneEx.java:145)
      2 frames
    5. com.liveultrahealthy.violet
      SettingsFragment.onCreatePreferences2
      1. com.liveultrahealthy.violet.ui.settings.SettingsFragment$1.onPreferenceChange(SettingsFragment.java:65)
      2. com.liveultrahealthy.violet.ui.settings.SettingsFragment.bindPreferenceSummaryToValue(SettingsFragment.java:80)
      3. com.liveultrahealthy.violet.ui.settings.SettingsFragment.onCreatePreferences2(SettingsFragment.java:152)
      3 frames
    6. android.support.v7
      PreferenceFragmentCompat.onCreate
      1. android.support.v7.preference.XpPreferenceFragment.onCreatePreferences(XpPreferenceFragment.java:53)
      2. android.support.v7.preference.PreferenceFragmentCompat.onCreate(PreferenceFragmentCompat.java:216)
      2 frames
    7. com.liveultrahealthy.violet
      SettingsFragment.onCreate
      1. com.liveultrahealthy.violet.ui.settings.SettingsFragment.onCreate(SettingsFragment.java:102)
      1 frame