Hi All

I am very new to Android

I am trying to paste examples from web but I got errors and don't know how to fix it. I have nobody to ask atound here.

The code for example:

public
void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);

setContentView(R.layout.
main);

//The next line is ERROR tells me -> R.id cannot be resolved

text1 = (EditText) this.findViewById(R.id.text1);

I also anderstand that I need to edit main.xml
And I did it with the following code:

<EditText android:id="@+id/text1"
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:text="EditText"
android:textSize="18sp" android:layout_x="60px"
android:layout_y="202px">
</EditText>


but I got error at the first line telling:

Multiple annotations found at this line:
- ERROR Error parsing XML: junk after document element
- The markup in the document following the root element must be well-
formed.

What am I missing ??????