I am trying to set up an eclipse environment on windows 64. I think I have done everything in the tutorial (developer.android.com) but when I select the project in eclipse to run i get the emulator to pop up but it doesn't show hello world.
I tried android version 2.1 and the emulator poped up and just eventual went to a black screen after showing ANDROID...
I tried as 4.0.3 and after the emulator popped up I just saw a plane jane android phone interface it wouldn't run my app. The code is below. Does anyone know what i am missing?
Eclipse displays the following when I run the emulator
[2012-02-19 11:58:40 - trst] ------------------------------
[2012-02-19 11:58:40 - trst] Android Launch!
[2012-02-19 11:58:40 - trst] adb is running normally.
[2012-02-19 11:58:40 - trst] Performing com.example.helloandroid.TrstActivity activity launch
[2012-02-19 11:58:40 - trst] Automatic Target Mode: launching new emulator with compatible AVD 'interface'
[2012-02-19 11:58:40 - trst] Launching a new emulator with Virtual Device 'interface'
[2012-02-19 11:58:55 - Emulator] emulator: WARNING: Unable to create sensors port: Unknown error
[2012-02-19 11:58:55 - trst] New emulator found: emulator-5554
[2012-02-19 11:58:55 - trst] Waiting for HOME ('android.process.acore') to be launched...
code:
package com.example.helloandroid;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class TrstActivity 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);
}
}