Inflating a view throws Resources$NotFoundException on physical device
<p>The exact error:</p>

<pre><code>07-16 18:34:41.729: ERROR/AndroidRuntime(28347):     android.content.res.Resources$NotFoundException: Resource ID #0x7f030001
07-16 18:34:41.729: ERROR/AndroidRuntime(28347):     at android.content.res.Resources.getValue(Resources.java:892)
07-16 18:34:41.729: ERROR/AndroidRuntime(28347):     at android.content.res.Resources.loadXmlResourceParser(Resources.java:1869)
07-16 18:34:41.729: ERROR/AndroidRuntime(28347):     at android.content.res.Resources.getLayout(Resources.java:731)
07-16 18:34:41.729: ERROR/AndroidRuntime(28347):     at android.view.LayoutInflater.inflate(LayoutInflater.java:318)
...
</code></pre>

<p>The call: </p>

<pre><code>LayoutInflater a = (LayoutInflater)getSystemService(LAYOUT_INFLATER_SERVICE);
LinearLayout mainLayout = (LinearLayout)findViewById(R.id.linearLayout1);
mainLayout.removeAllViews();                
mainLayout.addView(a.inflate(R.layout.input, null));
</code></pre>

<p>Bottom line throws the error.</p>

<p>The resource ID in the error is <code>R.layout.input</code>, which I'm trying to insert into another LayoutView <code>mainLayout</code>.</p>

<p>What's strange is that it only happens when I debug on my phone, when I run it in an emulator it works perfectly and adds the LayoutView as I want, yet if I try to debug on my phone it comes up with this error.</p>
