actually i found my problem this line
xmlns:android="http://schemas.android.com.apk.res.android";

should have been:
xmlns:android="http://schemas.android.com/apk/res/android";

thanks for the help!

On Jan 15, 9:48 am, Justin Anderson <[email protected]> wrote:
> Woops... Sorry, I missed the fact that the attribute was on the same line as
> the element.
>
> I'm kind of at a loss.  How are you using the view in code?  Are you using
> it via setContentView() or by LayoutInflater?
>
> Thanks,
> Justin
>
> ----------------------------------------------------------------------
> 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 10:40 AM, Greggawatt <[email protected]> wrote:
> > As far as i can see i do have the layout_width and height on everyone:
>
> > <?xml version="1.0" encoding="utf-8"?>
>
> > <LinearLayout
> >    xmlns:android="http://schemas.android.com.apk.res.android";
> >    android:orientation="vertical"
> >    android:layout_width="fill_parent"
> >    android:layout_height="fill_parent">
>
> > <TextView
> >    android:layout_width="fill_parent"
> >    android:layout_height="wrap_content"
> >    android:text="@string/main_title"/>
> > <Button
> >    android:layout_width="fill_parent"
> >    android:layout_height="wrap_content"
> >    android:text="@string/continue_label"/>
> > <Button
> >    android:layout_width="fill_parent"
> >    android:layout_height="wrap_content"
> >    android:text="@string/new_game_label"/>
> > <Button
> >    android:layout_width="fill_parent"
> >    android:layout_height="wrap_content"
> >    android:text="@string/about_label"/>
> > <Button
> >    android:layout_width="fill_parent"
> >    android:layout_height="wrap_content"
> >    android:text="@string/exit_label"/>
> > </LinearLayout>
>
> > On Jan 15, 9:21 am, Justin Anderson <[email protected]> wrote:
> > > 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]>
> > <android-beginners%[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]<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

Reply via email to