Here's the code where I set the resource:
tableListAdapter = new
ArrayAdapter<String>(this,R.id.chooseTableRowTextView);
setListAdapter( tableListAdapter );
Note that R.id.chooseTableRowTextView = 0x7f070004 and is a TextView.
Here's the full stacktrace from logcat. I'm stuck trying to figure out
what to do next.
W/dalvikvm( 848): threadid=3: thread exiting with uncaught exception
(group=0x4
001b188)
E/AndroidRuntime( 848): Uncaught handler: thread main exiting due to
uncaught e
xception
E/AndroidRuntime( 848): android.content.res.Resources
$NotFoundException: Resour
ce ID #0x7f070004 type #0x12 is not valid
E/AndroidRuntime( 848): at
android.content.res.Resources.loadXmlResource
Parser(Resources.java:1870)
E/AndroidRuntime( 848): at
android.content.res.Resources.getLayout(Resou
rces.java:730)
E/AndroidRuntime( 848): at
android.view.LayoutInflater.inflate(LayoutInf
later.java:318)
E/AndroidRuntime( 848): at
android.widget.ArrayAdapter.createViewFromRes
ource(ArrayAdapter.java:332)
E/AndroidRuntime( 848): at
android.widget.ArrayAdapter.getView(ArrayAdap
ter.java:323)
E/AndroidRuntime( 848): at
android.widget.HeaderViewListAdapter.getView(
HeaderViewListAdapter.java:191)
E/AndroidRuntime( 848): at
android.widget.AbsListView.obtainView(AbsList
View.java:1274)
E/AndroidRuntime( 848): at
android.widget.ListView.makeAndAddView(ListVi
ew.java:1668)
E/AndroidRuntime( 848): at
android.widget.ListView.fillDown(ListView.jav
a:637)
E/AndroidRuntime( 848): at
android.widget.ListView.fillFromTop(ListView.
java:694)
E/AndroidRuntime( 848): at
android.widget.ListView.layoutChildren(ListVi
ew.java:1507)
E/AndroidRuntime( 848): at
android.widget.AbsListView.onLayout(AbsListVi
ew.java:1113)
E/AndroidRuntime( 848): at android.view.View.layout(View.java:
6830)
E/AndroidRuntime( 848): at
android.widget.LinearLayout.setChildFrame(Lin
earLayout.java:1119)
E/AndroidRuntime( 848): at
android.widget.LinearLayout.layoutVertical(Li
nearLayout.java:998)
E/AndroidRuntime( 848): at
android.widget.LinearLayout.onLayout(LinearLa
yout.java:918)
E/AndroidRuntime( 848): at android.view.View.layout(View.java:
6830)
E/AndroidRuntime( 848): at
android.widget.FrameLayout.onLayout(FrameLayo
ut.java:333)
E/AndroidRuntime( 848): at android.view.View.layout(View.java:
6830)
E/AndroidRuntime( 848): at
android.widget.LinearLayout.setChildFrame(Lin
earLayout.java:1119)
E/AndroidRuntime( 848): at
android.widget.LinearLayout.layoutVertical(Li
nearLayout.java:998)
E/AndroidRuntime( 848): at
android.widget.LinearLayout.onLayout(LinearLa
yout.java:918)
E/AndroidRuntime( 848): at android.view.View.layout(View.java:
6830)
E/AndroidRuntime( 848): at
android.widget.FrameLayout.onLayout(FrameLayo
ut.java:333)
E/AndroidRuntime( 848): at android.view.View.layout(View.java:
6830)
E/AndroidRuntime( 848): at
android.view.ViewRoot.performTraversals(ViewR
oot.java:996)
E/AndroidRuntime( 848): at
android.view.ViewRoot.handleMessage(ViewRoot.
java:1633)
E/AndroidRuntime( 848): at
android.os.Handler.dispatchMessage(Handler.ja
va:99)
E/AndroidRuntime( 848): at android.os.Looper.loop(Looper.java:
123)
E/AndroidRuntime( 848): at
android.app.ActivityThread.main(ActivityThrea
d.java:4363)
E/AndroidRuntime( 848): at
java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime( 848): at
java.lang.reflect.Method.invoke(Method.java:5
21)
E/AndroidRuntime( 848): at com.android.internal.os.ZygoteInit
$MethodAndA
rgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime( 848): at
com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:618)
E/AndroidRuntime( 848): at
dalvik.system.NativeStart.main(Native Method)
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en