title: Strange exception in ListView Android
body: <p>I am getting an exception but could not get where exactly the exception occured.
  I searched but could not get the my project name in the stacktrace.</p>
  
  <p>Below is my stacktrace</p>
  
  <pre><code>02-13 15:48:23.741: W/dalvikvm(416): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
  02-13 15:48:24.026: W/System.err(416):    android.content.res.Resources$NotFoundException: File  from xml type layout resource ID   #0x102000a
  02-13 15:48:24.036: W/System.err(416):  at android.content.res.Resources.loadXmlResourceParser(Resources.java:1916)
  02-13 15:48:24.036: W/System.err(416):  at android.content.res.Resources.loadXmlResourceParser(Resources.java:1871)
  02-13 15:48:24.036: W/System.err(416):  at android.content.res.Resources.getLayout(Resources.java:731)
  02-13 15:48:24.036: W/System.err(416):  at android.view.LayoutInflater.inflate(LayoutInflater.java:318)
  02-13 15:48:24.036: W/System.err(416):  at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:332)
  02-13 15:48:24.036: W/System.err(416):  at android.widget.ArrayAdapter.getView(ArrayAdapter.java:323)
  02-13 15:48:24.036: W/System.err(416):  at android.widget.AbsListView.obtainView(AbsListView.java:1315)
  02-13 15:48:24.046: W/System.err(416):  at android.widget.ListView.makeAndAddView(ListView.java:1727)
  02-13 15:48:24.046: W/System.err(416):  at android.widget.ListView.fillDown(ListView.java:652)
  02-13 15:48:24.046: W/System.err(416):  at android.widget.ListView.fillFromTop(ListView.java:709)
  02-13 15:48:24.046: W/System.err(416):  at android.widget.ListView.layoutChildren(ListView.java:1580)
  02-13 15:48:24.046: W/System.err(416):  at android.widget.AbsListView.onLayout(AbsListView.java:1147)
  02-13 15:48:24.046: W/System.err(416):  at android.view.View.layout(View.java:7035)
  02-13 15:48:24.046: W/System.err(416):  at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1249)
  02-13 15:48:24.046: W/System.err(416):  at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1125)
  02-13 15:48:24.046: W/System.err(416):  at android.widget.LinearLayout.onLayout(LinearLayout.java:1042)
  02-13 15:48:24.046: W/System.err(416):  at android.view.View.layout(View.java:7035)
  02-13 15:48:24.046: W/System.err(416):  at android.widget.RelativeLayout.onLayout(RelativeLayout.java:909)
  02-13 15:48:24.056: W/System.err(416):  at android.view.View.layout(View.java:7035)
  02-13 15:48:24.056: W/System.err(416):  at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1249)
  02-13 15:48:24.056: W/System.err(416):  at android.widget.LinearLayout.layoutHorizontal(LinearLayout.java:1238)
  02-13 15:48:24.056: W/System.err(416):  at android.widget.LinearLayout.onLayout(LinearLayout.java:1044)
  02-13 15:48:24.056: W/System.err(416):  at android.view.View.layout(View.java:7035)
  02-13 15:48:24.056: W/System.err(416):  at android.widget.FrameLayout.onLayout(FrameLayout.java:333)
  02-13 15:48:24.056: W/System.err(416):  at android.view.View.layout(View.java:7035)
  02-13 15:48:24.056: W/System.err(416):  at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1249)
  02-13 15:48:24.066: W/System.err(416):  at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1125)
  02-13 15:48:24.066: W/System.err(416):  at android.widget.LinearLayout.onLayout(LinearLayout.java:1042)
  02-13 15:48:24.066: W/System.err(416):  at android.view.View.layout(View.java:7035)
  02-13 15:48:24.076: W/System.err(416):  at    android.widget.FrameLayout.onLayout(FrameLayout.java:333)
  02-13 15:48:24.076: W/System.err(416):  at android.view.View.layout(View.java:7035)
  02-13 15:48:24.076: W/System.err(416):  at    android.view.ViewRoot.performTraversals(ViewRoot.java:1045)
  02-13 15:48:24.076: W/System.err(416):  at android.view.ViewRoot.handleMessage(ViewRoot.java:1727)
  02-13 15:48:24.076: W/System.err(416):  at android.os.Handler.dispatchMessage(Handler.java:99)
  02-13 15:48:24.076: W/System.err(416):  at android.os.Looper.loop(Looper.java:123)
  02-13 15:48:24.076: W/System.err(416):  at android.app.ActivityThread.main(ActivityThread.java:4627)
  02-13 15:48:24.076: W/System.err(416):  at java.lang.reflect.Method.invokeNative(Native Method)
  02-13 15:48:24.086: W/System.err(416):  at java.lang.reflect.Method.invoke(Method.java:521)
  02-13 15:48:24.086: W/System.err(416):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
  02-13 15:48:24.086: W/System.err(416):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
  02-13 15:48:24.086: W/System.err(416):  at dalvik.system.NativeStart.main(Native Method)
   02-13 15:48:24.086: W/System.err(416): Caused by: java.io.FileNotFoundException: 
   02-13 15:48:24.086: W/System.err(416):     at android.content.res.AssetManager.openXmlAssetNative(Native Method)
  02-13 15:48:24.086: W/System.err(416):  at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:485)
  02-13 15:48:24.086: W/System.err(416):  at android.content.res.Resources.loadXmlResourceParser(Resources.java:1898)
  02-13 15:48:24.086: W/System.err(416):  ... 40 more
  </code></pre>
  
  <p>My project package name is </p>
  
  <pre><code>com.stylingandroid.IntelligentLayout.SecondaryLayout;
  </code></pre>
  
  <p>I could not see my package name at all
  Before I had an exception which I set it right the exception was </p>
  
  <pre><code>02-13 15:39:25.756: W/System.err(379): Caused by: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'
  </code></pre>
  
  <p>I changed my ListView Id to <code>android:id="@id/android:list"</code> and in java code I changed the adapter as </p>
  
  <pre><code>  setListAdapter(new ArrayAdapter&lt;String&gt;(this,android.R.id.list, STATE));
     getListView().setTextFilterEnabled(true);
  </code></pre>
  
  <p>My class extends ListActivity</p>
  
  <pre><code>public class StateList extends ListActivity{
  </code></pre>
  
  <p>Looking forward to your reply.
  thanks.</p>