java.lang.RuntimeException: Unable to resume activity {com.android.settings/com.android.settings.SubSettings}: android.content.res.Resources$NotFoundException: Resource ID #0x0

JIRA | davide | 7 months ago
  1. 0

    I've received CM13 (ZNH0EAS2JK, build MMB29X) via OTA and installed on my OPO (model A0001). Everything works fine except the battery app: when I run it, either from Status Bar or Settings, I get the below exception. Also I noticed the battery drains much faster than before. java.lang.RuntimeException: Unable to resume activity {com.android.settings/com.android.settings.SubSettings}: android.content.res.Resources$NotFoundException: Resource ID #0x0 at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3147) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3178) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2525) at android.app.ActivityThread.-wrap11(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1363) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5466) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x0 at android.content.res.Resources.getValue(Resources.java:1430) at android.content.res.Resources.getValue(Resources.java:1410) at android.content.res.Resources.getColor(Resources.java:1026) at android.content.Context.getColor(Context.java:441) at com.android.settings.fuelgauge.PowerUsageSummary.refreshStats(PowerUsageSummary.java:490) at com.android.settings.fuelgauge.PowerUsageSummary.onResume(PowerUsageSummary.java:187) at android.app.Fragment.performResume(Fragment.java:2263) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1008) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1148) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1130) at android.app.FragmentManagerImpl.dispatchResume(FragmentManager.java:1963) at android.app.FragmentController.dispatchResume(FragmentController.java:174) at android.app.Activity.performResume(Activity.java:6348) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3136) ... 10 more !Screenshot_20160429-094134.png|thumbnail! PLEASE HELP!!!

    JIRA | 7 months ago | davide
    java.lang.RuntimeException: Unable to resume activity {com.android.settings/com.android.settings.SubSettings}: android.content.res.Resources$NotFoundException: Resource ID #0x0
  2. 0

    I've received CM13 (ZNH0EAS2JK, build MMB29X) via OTA and installed on my OPO (model A0001). Everything works fine except the battery app: when I run it, either from Status Bar or Settings, I get the below exception. Also I noticed the battery drains much faster than before. java.lang.RuntimeException: Unable to resume activity {com.android.settings/com.android.settings.SubSettings}: android.content.res.Resources$NotFoundException: Resource ID #0x0 at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3147) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3178) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2525) at android.app.ActivityThread.-wrap11(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1363) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5466) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x0 at android.content.res.Resources.getValue(Resources.java:1430) at android.content.res.Resources.getValue(Resources.java:1410) at android.content.res.Resources.getColor(Resources.java:1026) at android.content.Context.getColor(Context.java:441) at com.android.settings.fuelgauge.PowerUsageSummary.refreshStats(PowerUsageSummary.java:490) at com.android.settings.fuelgauge.PowerUsageSummary.onResume(PowerUsageSummary.java:187) at android.app.Fragment.performResume(Fragment.java:2263) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1008) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1148) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1130) at android.app.FragmentManagerImpl.dispatchResume(FragmentManager.java:1963) at android.app.FragmentController.dispatchResume(FragmentController.java:174) at android.app.Activity.performResume(Activity.java:6348) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3136) ... 10 more !Screenshot_20160429-094134.png|thumbnail! PLEASE HELP!!!

    JIRA | 7 months ago | davide
    java.lang.RuntimeException: Unable to resume activity {com.android.settings/com.android.settings.SubSettings}: android.content.res.Resources$NotFoundException: Resource ID #0x0
  3. 0

    Fix crash when entering directly to Icons Preview section

    GitHub | 11 months ago | jahirfiquitiva
    java.lang.RuntimeException: Unable to resume activity {jahirfiquitiva.apps.iconshowcase/jahirfiquitiva.apps.iconshowcase.activities.ShowcaseActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.support.design.widget.AppBarLayout$Behavior.setTopAndBottomOffset(int)' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Same code but app crashes?

    Stack Overflow | 10 months ago | jcrossley
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.f454.jackc.chiropodist/com.f454.jackc.chiropodist.MainActivity}: java.lang.IllegalArgumentException: AppIndex: The android-app URI host must match the package name and follow the format android-app://<package_name>/<scheme>/[host_path]. Provided URI: android-app://com.f454.jackc.chiropody/http/host/path
  6. 0

    Android Studio - PDFRendererBasic - Unable to replace sample.pdf?

    Stack Overflow | 10 months ago | emvee
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android.pdfrendererbasic/com.example.android.pdfrendererbasic.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.pdf.PdfRenderer.getPageCount()' on a null object reference

  1. Riyaz 2 times, last 1 week ago
  2. malhobayyeb 9 times, last 2 weeks ago
  3. bluebunnty 11 times, last 3 weeks ago
  4. Aria Pahlavan 1045 times, last 2 weeks ago
  5. Alexandru Popa 12 times, last 3 weeks ago
39 more registered users
7 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.RuntimeException

    Unable to resume activity {com.android.settings/com.android.settings.SubSettings}: android.content.res.Resources$NotFoundException: Resource ID #0x0

    at android.app.ActivityThread.performResumeActivity()
  2. Android Platform
    ActivityThread.handleLaunchActivity
    1. android.app.ActivityThread.performResumeActivity(ActivityThread.java:3147)
    2. android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3178)
    3. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2525)
    3 frames