• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Testing my apps...problems...

ttaylor0024

Android Enthusiast
I'm new to programming, so I am trying to get my feet wet by finding what each little thing does. I modded my XML file to look like this:

<?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/hello"
/>
<Button
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="Button"
android:linksClickable="true"
/>
</LinearLayout>

Now, granted I do not know how to link my button to stuff, if you could help me get started with programming that would be great. But now back to my problem, when I click "run" to see what it would look like, Eclipse makes a file in the "layout" folder by Main.xml. The file is named "main.out.xml". Then I get this for errors in the bottom...

[2010-01-16 17:31:50 - Hello World]Error in an XML file: aborting build.
[2010-01-16 17:31:51 - Hello World]res\layout\main.xml:0: ERROR Resource entry main is already defined.
[2010-01-16 17:31:51 - Hello World]res\layout\main.out.xml:0: Originally defined here.
[2010-01-16 17:31:51 - Hello World]C:\Users\Tosh Taylor\Android SDK\Workspace\Hello World\res\layout\main.out.xml:1: ERROR Error parsing XML: no element found

Help would be great... (programming help too! :P)

( There is no space between android: Orientation in my codes, but it would put this in :o if I didnt put a space in this.)
 
Back
Top Bottom