I installed the sdk and eclipse. I am attempting to follow the guide
at http://developer.android.com/guide/tutorials/hello-world.html. I"m
not getting any notifications of errors. But my screen after running
does not look like the guide's. My screen opens up with a black
section with the word "Android" in the middle of it, on the left side.
And on the right side there are buttons consisting of a keyboard and
above that other buttons relating to a phone. Any ideas? I should
point out tht setting up the ADT like they mention in the guide,
doesn't work. I believe I managed to do it correctly via Eclipse.
This is the exact code:
package com.example.helloandroid;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class HelloAndroid extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TextView tv = new TextView(this);
tv.setText("Hello, Android");
setContentView(tv);
}
}
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
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