shahdharmit
Guest
Hello,
Following is my code
As per the output presented on developer.android.com, I should be getting Hello, Android printed on the emulator. But what I get is shown in the image I've attached. What maybe the possible reason and what shall I do to overcome the problem?
Thanks.
Following is my code
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);
}
}
Thanks.

