Allow Eclipse to run past the point of the exception and get the real stack trace in LogCat.
On Mon, Mar 7, 2011 at 10:17 AM, New Developer <secur...@isscp.com> wrote: > To Mark > Thanks for the advice and link > Here is What debug gives when I activate the Activity which has a > <TableRow> with an <EditView> > NOTE: If I change <EditView> to <TextView> All works well > DalvikVM[localhost:8635] > Thread [<1> main] (Suspended (exception RuntimeException)) > ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord, Intent) > line: 2663 > ActivityThread.handleLaunchActivity(ActivityThread$ActivityRecord, Intent) > line: 2679 > ActivityThread.access$2300(ActivityThread, ActivityThread$ActivityRecord, > Intent) line: 125 > ActivityThread$H.handleMessage(Message) line: 2033 > ActivityThread$H(Handler).dispatchMessage(Message) line: 99 > Looper.loop() line: 123 > ActivityThread.main(String[]) line: 4627 > Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) > line: not available [native method] > Method.invoke(Object, Object...) line: 521 > ZygoteInit$MethodAndArgsCaller.run() line: 868 > ZygoteInit.main(String[]) line: 626 > NativeStart.main(String[]) line: not available [native method] > Thread [<6> Binder Thread #2] (Running) > Thread [<5> Binder Thread #1] (Running) > > LogCat has > 03-07 10:11:36.264: DEBUG/KeyguardViewMediator(59): pokeWakelock(5000) > 03-07 10:11:36.997: DEBUG/KeyguardViewMediator(59): pokeWakelock(5000) > 03-07 10:11:37.244: INFO/ActivityManager(59): Displayed activity > org.example.demo/.demoMainActivity: 362441 ms (total 362441 ms) > 03-07 10:12:02.824: INFO/ActivityManager(59): Starting activity: Intent { > cmp=org.example.demo/.demoStockTakeActivity } > 03-07 10:12:12.854: WARN/ActivityManager(59): Launch timeout has expired, > giving up wake lock! > 03-07 10:12:12.951: WARN/ActivityManager(59): Activity idle timeout for > HistoryRecord{45155548 org.example.demo/.demoStockTakeActivity} > > The Layout is as follows > <TableLayout > android:layout_x="0dp" > android:layout_y="90dp" > android:scrollbars="vertical" > android:layout_width="match_parent" > android:layout_height="wrap_content"> > > > > <TableRow android:layout_margin="2dp"> > <TextView > android:id="@+id/stkRowQty" > android:text="Qty / Unit" > android:layout_margin="2dp" > android:background="#000000" > style="@style/CodeFont" > android:gravity="center" > android:layout_width="80dp" > android:layout_height="wrap_content" /> > <EditView <<--- Problem HERE > android:id="@+id/stkRowCount" > android:background="#000000" > style="@style/CodeFont" > android:gravity="center" > android:layout_width="80dp" > android:layout_height="wrap_content" /> > <TextView > android:id="@+id/stkRowDiff" > android:text="Diff." > android:layout_margin="2dp" > android:background="#000000" > style="@style/CodeFont" > android:gravity="center" > android:layout_width="60dp" > android:layout_height="wrap_content" /> > </TableRow> > </TableLayout> > > Thanks in advance > > > > > > > > On Mar 6, 2011, at 8:53 PM, Mark Murphy wrote: > > Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine > LogCat and look at the stack trace associated with your crash. It is > definitely possible to have EditTexts in TableRows: > > https://github.com/commonsguy/cw-andtutorials/blob/master/03-FancierForm/LunchList/res/layout/main.xml > > On Sun, Mar 6, 2011 at 7:54 PM, New Developer <secur...@isscp.com> wrote: > > I'm trying to create a simple Table Layout > > Within the <TableRow> I can have <TextView> 's but when I place an > <EditView> in the TableRow > > It crashes is an Error and ideas how I can create a table row with both an > <TextView> and an <EditView> > > Thanks > > -- > > 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 > > > > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://github.com/commonsguy > http://commonsware.com/blog | http://twitter.com/commonsguy > > Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2 > > -- > 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 > > -- > 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training Worldwide: http://commonsware.com/training -- 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