Hi. I never thought of myself as an idiot but I seem to be at a crossroads of competency in trying to get "Hello World" to display.
I've followed the tutorial for hello world in eclipse using the plugin. It all seems to work fine, but when I press run as android application an emulator pops up (it looks like a big cheesy phone) and just says "Android _" .... nothing more. I tried some trouble shooting tips that involved killing the emulator process
but it's done nothing to help me. I'm pretty frustrated because apparenly my google skills are slipping and can't seem to find any one who had a similar problem.
The source for my hello world app is:
package com.android.test;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class myTest 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);
}
}
I've followed the tutorial for hello world in eclipse using the plugin. It all seems to work fine, but when I press run as android application an emulator pops up (it looks like a big cheesy phone) and just says "Android _" .... nothing more. I tried some trouble shooting tips that involved killing the emulator process
- Quit the emulator if it is running
- Check that any emulator processes are killed (sometimes they can hang, use ps on unix or mac, or task manager in the process view on windows).
- Quit Eclipse
- From the command line, type: adb kill-server
- Start Eclipse and try again
but it's done nothing to help me. I'm pretty frustrated because apparenly my google skills are slipping and can't seem to find any one who had a similar problem.
The source for my hello world app is:
package com.android.test;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class myTest 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);
}
}