Hi guys
Sorry to bore you with a 'Hello World' question. The problem is I can't get my application to show 'Hello World'. My emulator loads fine and the device is started. From here i drag the locked icon across which takes me to the main screen but it doesn't have hello world anywhere.
I searched everywhere for a solution and still can't do a basic hello world application. Any help I will vastly appreciate.
Sorry to bore you with a 'Hello World' question. The problem is I can't get my application to show 'Hello World'. My emulator loads fine and the device is started. From here i drag the locked icon across which takes me to the main screen but it doesn't have hello world anywhere.
I searched everywhere for a solution and still can't do a basic hello world application. Any help I will vastly appreciate.
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);
}
}