Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid Resources$NotFoundException: Resource ID #0x0 Issue
    text
    copied!<p>I am getting this error in a class that I have setup, I am new to android development and would appreciate finding out how to debug this error, in eclipse. I have looked at many stack overflow posts regarding this issue but none has helped me solve the problem.</p> <pre><code>public class LeftRightSliderFragmentController extends BaseSliderFragmentController { public LeftRightSliderFragmentController() { super(); } public LeftRightSliderFragmentController(int titleRes) { super(R.string.left_and_right); } </code></pre> <p>In my strings.xml</p> <p>I have </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;resources&gt; &lt;string name="app_name"&gt;SliderExample&lt;/string&gt; &lt;string name="action_settings"&gt;Settings&lt;/string&gt; &lt;string name="hello_world"&gt;Hello world!&lt;/string&gt; &lt;string name="left_and_right"&gt;Left and Right&lt;/string&gt; &lt;/resources&gt; </code></pre> <p>In the baseclass I have</p> <pre><code>public class BaseSliderFragmentController extends SlidingFragmentActivity { private int mTitleRes; protected RSSFeedFragmentController mFrag; public BaseSliderFragmentController(int titleRes) { mTitleRes = titleRes; } public BaseSliderFragmentController() { // TODO Auto-generated constructor stub } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //New Change EDIT String h = "Hello" setTitle(h); </code></pre> <p>Essentially I am not sure why this issue would come up as well I am not exactly sure where this issue is coming up either. I am wondering if there is a way to debug to get to the line of code where this is happening so I can investigate. I believe it has to do with the setTitle possibly? </p> <pre><code>03-06 02:58:04.195: E/AndroidRuntime(4879): FATAL EXCEPTION: main 03-06 02:58:04.195: E/AndroidRuntime(4879): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.sliderexample/com.example.sliderexample.FragmentControllers.LeftRightSliderFragmentController}: android.content.res.Resources$NotFoundException: String resource ID #0x0 03-06 02:58:04.195: E/AndroidRuntime(4879): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2088) 03-06 02:58:04.195: E/AndroidRuntime(4879): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2113) 03-06 02:58:04.195: E/AndroidRuntime(4879): at android.app.ActivityThread.access$700(ActivityThread.java:139) 03-06 02:58:04.195: E/AndroidRuntime(4879): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1224) </code></pre> <p>EDIT: Made the change in the code new result new Error </p> <p>03-06 03:33:05.034: E/AndroidRuntime(6336): FATAL EXCEPTION: main 03-06 03:33:05.034: E/AndroidRuntime(6336): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.sliderexample/com.example.sliderexample.FragmentControllers.LeftRightSliderFragmentController}: android.content.res.Resources$NotFoundException: Resource ID #0xa</p> <p>Issue is I do not know where this error occurs anyone know how to get to that line using the debugger?.... I also searched this up on the stack nothing appears to be able to be useful enough to help me.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload