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]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to