I develop mostly for iPhone and have started very recently with Android.
Tried the hello world, but when hit run the emulator just shows a black screen with an Android logo shining.
package com.hyper.tuti;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class TutiActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// setContentView(R.layout.main);
TextView tv = new TextView(this);
tv.setText("Hello, Android");
setContentView(tv);
}
}
why is my simulator not working??