I have a grid view and an adapter for it, now this adapter uses an array of "cell types" to determin what type of view goes into each cell in the grid. Everything works fine until I try to set the text view's text in one of my views before returning it from the adapters getView method.
I get this error. 04-01 01:34:48.613: VERBOSE/Tim(417): Creating view for cell [0, 3] 04-01 01:34:48.613: VERBOSE/Cell(417): Using col sum layout 04-01 01:34:48.633: WARN/ResourceType(417): No package identifier when getting name for resource number 0x0000000d 04-01 01:34:48.633: DEBUG/AndroidRuntime(417): Shutting down VM 04-01 01:34:48.643: WARN/dalvikvm(417): threadid=3: thread exiting with uncaught exception (group=0x4001b188) 04-01 01:34:48.643: ERROR/AndroidRuntime(417): Uncaught handler: thread main exiting due to uncaught exception 04-01 01:34:48.663: ERROR/AndroidRuntime(417): android.content.res.Resources$NotFoundException: String resource ID #0xd 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at android.content.res.Resources.getText(Resources.java:200) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at android.widget.TextView.setText(TextView.java:2813) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at com.tim.testing.CellAdapter.getCellView(CellAdapter.java:114) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at com.tim.testing.CellAdapter.getView(CellAdapter.java:64) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at android.widget.AbsListView.obtainView(AbsListView.java:1256) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at android.widget.GridView.makeAndAddView(GridView.java:1218) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at android.widget.GridView.makeRow(GridView.java:265) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at android.widget.GridView.fillDown(GridView.java:218) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at android.widget.GridView.fillFromTop(GridView.java:337) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at android.widget.GridView.layoutChildren(GridView.java:1112) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at android.widget.AbsListView.onLayout(AbsListView.java:1113) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at android.view.View.layout(View.java:6830) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1119) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:998) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at android.widget.TableLayout.onLayout(TableLayout.java:437) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at android.view.View.layout(View.java:6830) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at android.widget.FrameLayout.onLayout(FrameLayout.java:333) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at android.view.View.layout(View.java:6830) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1119) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:998) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at android.widget.LinearLayout.onLayout(LinearLayout.java:918) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at android.view.View.layout(View.java:6830) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at android.widget.FrameLayout.onLayout(FrameLayout.java:333) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at android.view.View.layout(View.java:6830) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at android.view.ViewRoot.performTraversals(ViewRoot.java:996) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at android.view.ViewRoot.handleMessage(ViewRoot.java:1633) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at android.os.Handler.dispatchMessage(Handler.java:99) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at android.os.Looper.loop(Looper.java:123) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at android.app.ActivityThread.main(ActivityThread.java:4363) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at java.lang.reflect.Method.invokeNative(Native Method) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at java.lang.reflect.Method.invoke(Method.java:521) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:860) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 04-01 01:34:48.663: ERROR/AndroidRuntime(417): at dalvik.system.NativeStart.main(Native Method) 04-01 01:34:48.693: INFO/Process(51): Sending signal. PID: 417 SIG: 3 04-01 01:34:48.693: INFO/dalvikvm(417): threadid=7: reacting to signal 3 04-01 01:34:48.693: ERROR/dalvikvm(417): Unable to open stack trace file '/data/anr/traces.txt': Permission denied now the R.id.ColumnSumText = 0x7f060001 not the 0x0000000d that it was looking for. What can I do to get this to work or what am I doing wrong? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using "remove me" as the subject.