Hi I was trying to write my first android app "hello world"
and I went to tutorial in developer.android.com
but
here is what i got and it didnt work:
Can you tell me what's wrong?
The code is as below:
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);
}
}
and the messages below were:
[2011-09-13 22:20:29 - HelloAndroid] ------------------------------
[2011-09-13 22:20:29 - HelloAndroid] Android Launch!
[2011-09-13 22:20:29 - HelloAndroid] adb is running normally.
[2011-09-13 22:20:29 - HelloAndroid] Performing com.example.helloandroid.HelloAndroid activity launch
[2011-09-13 22:20:29 - HelloAndroid] Automatic Target Mode: launching new emulator with compatible AVD 'hello_world_avd'
[2011-09-13 22:20:29 - HelloAndroid] Launching a new emulator with Virtual Device 'hello_world_avd'
[2011-09-13 22:20:30 - Emulator] invalid command-line parameter: Files\Android\android-sdk\tools/emulator-arm.exe.
[2011-09-13 22:20:30 - Emulator] Hint: use '@foo' to launch a virtual device named 'foo'.
[2011-09-13 22:20:30 - Emulator] please use -help for more information
and I went to tutorial in developer.android.com
but
here is what i got and it didnt work:
Can you tell me what's wrong?
The code is as below:
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);
}
}
and the messages below were:
[2011-09-13 22:20:29 - HelloAndroid] ------------------------------
[2011-09-13 22:20:29 - HelloAndroid] Android Launch!
[2011-09-13 22:20:29 - HelloAndroid] adb is running normally.
[2011-09-13 22:20:29 - HelloAndroid] Performing com.example.helloandroid.HelloAndroid activity launch
[2011-09-13 22:20:29 - HelloAndroid] Automatic Target Mode: launching new emulator with compatible AVD 'hello_world_avd'
[2011-09-13 22:20:29 - HelloAndroid] Launching a new emulator with Virtual Device 'hello_world_avd'
[2011-09-13 22:20:30 - Emulator] invalid command-line parameter: Files\Android\android-sdk\tools/emulator-arm.exe.
[2011-09-13 22:20:30 - Emulator] Hint: use '@foo' to launch a virtual device named 'foo'.
[2011-09-13 22:20:30 - Emulator] please use -help for more information