Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## HelloWorld.java
- package org.volcanic.hello;
- import android.app.Activity;
- import android.os.Bundle;
- import android.widget.TextView;
- public class HelloWorld 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, World");
- setContentView(tv);
- }
- }
- ## from console
- [2008-11-11 17:19:08 - Hello] ------------------------------
- [2008-11-11 17:19:08 - Hello] Android Launch!
- [2008-11-11 17:19:08 - Hello] adb is running normally.
- [2008-11-11 17:19:08 - Hello] Launching: org.volcanic.hello.HelloWorld
- [2008-11-11 17:19:08 - Hello] Automatic Target Mode: launching new emulator.
- [2008-11-11 17:19:08 - Hello] Launching a new emulator.
- [2008-11-11 17:19:10 - Hello] New emulator found: emulator-5554
- [2008-11-11 17:19:10 - Hello] Waiting for HOME ('android.process.acore') to be launched...
- [2008-11-11 17:19:47 - Hello] emulator-5554 disconnected! Cancelling 'org.volcanic.hello.HelloWorld' launch!
Add Comment
Please, Sign In to add comment