Every view MUST have a layout_width and a layout_height attribute... I don't remember where but that is mentioned somewhere in the Dev Guides.
You do have one on line 3 but you do not have one on your TextView and Buttons. ---------------------------------------------------------------------- There are only 10 types of people in the world... Those who know binary and those who don't. ---------------------------------------------------------------------- On Fri, Jan 15, 2010 at 9:19 AM, greggahorton <[email protected]>wrote: > Im having an issue with running a sample program from the book "Hello > Android" > > The process trys to start but then i get the error: The application has > stop unexpectedly. Please try again. > Using adb logcat while running the program gives me this: > ------------------------------------------- > 21) > E/AndroidRuntime( 819): at > > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782) > E/AndroidRuntime( 819): at > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) > E/AndroidRuntime( 819): at dalvik.system.NativeStart.main(Native > Method) > E/AndroidRuntime( 819): Caused by: java.lang.RuntimeException: Binary > XML file line #3: You must supply a layout_width attribute. > E/AndroidRuntime( 819): at > android.content.res.TypedArray.getLayoutDimension(TypedArray.java:438) > -------------------------------------------------------------------- > Which tells me i need a layout_width attribute, but here is my main.xml > file: > > http://codepad.org/YZl1nZaO > > line 3, has a layout_width attribute.... > > where am i going wrong? > > -- > You received this message because you are subscribed to the Google > Groups "Android Beginners" group. > > NEW! Try asking and tagging your question on Stack Overflow at > http://stackoverflow.com/questions/tagged/android > > To unsubscribe from this group, send email to > [email protected]<android-beginners%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-beginners?hl=en > >
-- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en

