Android Development

I have just started developing the android app here: http://developer.android.com/training/basics/firstapp/building-ui.html
And am stuck at that exact link. When I run the emulator I get a black screen with a title at the top. Here is the code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package com.MyFirstApp;
import android.app.Activity;
import android.os.Bundle;


public class MainActivity extends Activity
{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
}


And here is the main.xml file:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="horizontal" >
    <EditText android:id="@+id/edit_message"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:hint="@string/edit_message" />
    <Button android:layout_width="wrap_content" 
	    android:layout_height="wrap_content"
	    android:text="@string/button_send" />
</LinearLayout>


Thanks in advance.
closed account (3hM2Nwbp)
Android emulators sometimes take a VERY LONG (5+ minutes) time to load. Are you sure that your emulator is loading properly?
Yes, I get to a lock screen where I unlock it, and then it load my app and blank screen, with title.
@Harmony what idiot would try that?
@Script Coder
I have a sinking feeling Harmony will be banned soon. So far all the threads and posts made by that individual have been utterly retarded or completely pointless.

Now as for your problem. I'm not sure how to fix it as I'm getting a few errors and then my emulator no longer loads. Sorry I couldn't be of service on this one. :(
Topic archived. No new replies allowed.