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);
}
}
package com.exmple.helloandroid;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class HelloAndroidActivity 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, new Android");
setContentView(tv);
//setContentView(R.layout.main);
}
}
[2012-03-19 08:37:42 - HelloAndroid] ------------------------------
[2012-03-19 08:37:42 - HelloAndroid] Android Launch!
[2012-03-19 08:37:42 - HelloAndroid] adb is running normally.
[2012-03-19 08:37:42 - HelloAndroid] Performing com.exmple.helloandroid.HelloAndroidActivity activity launch
[2012-03-19 08:37:42 - HelloAndroid] Automatic Target Mode: launching new emulator with compatible AVD 'my_avd'
[2012-03-19 08:37:42 - HelloAndroid] Launching a new emulator with Virtual Device 'my_avd'
[2012-03-19 08:37:50 - Emulator] emulator: WARNING: Unable to create sensors port: Unknown error
[2012-03-19 08:37:50 - HelloAndroid] New emulator found: emulator-5554
[2012-03-19 08:37:50 - HelloAndroid] Waiting for HOME ('android.process.acore') to be launched...
[2012-03-19 08:39:21 - HelloAndroid] HOME is up on device 'emulator-5554'
[2012-03-19 08:39:21 - HelloAndroid] Uploading HelloAndroid.apk onto device 'emulator-5554'
[2012-03-19 08:39:21 - HelloAndroid] Installing HelloAndroid.apk...
[2012-03-19 08:40:23 - HelloAndroid] Success!
[2012-03-19 08:40:23 - HelloAndroid] Starting activity com.exmple.helloandroid.HelloAndroidActivity on device emulator-5554
[2012-03-19 08:40:25 - HelloAndroid] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.exmple.helloandroid/.HelloAndroidActivity }
[2012-03-19 08:44:04 - HelloAndroid] ------------------------------