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

JIRA | davide | 10 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  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 | 10 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 | 10 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 | 1 year 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

    "You need to use a theme.appcompat theme" with Theme.AppCompat as theme, Sdk v23

    Stack Overflow | 2 years ago | guillaume_fr
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myapp.android.debug/com.myapp.mobile.activities.HomeActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
  6. 0

    Same code but app crashes?

    Stack Overflow | 1 year 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

  1. Indri Yunita 4 times, last 2 weeks ago
  2. andreeaa marin 184 times, last 1 month ago
  3. Reich 59 times, last 1 month ago
  4. gamebusterz 40 times, last 1 month ago
  5. Emrah Küçük 3 times, last 2 months ago
42 more registered users
11 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