Hello World - works out of the box - just slow - how to speed-up
Today I did the first Hello World - I thought it was not working...
..using Eclipse under XP
Fact is the emulator is just slow on start-up
1) Andriod displays in middle of screen
2) red streak moves back and forth
3) WAIT A WHILE.. WAIT A WHILE.. WAIT A WHILE
4) It finally WORKS AS PROMISED
Speed-Up: Do not close emulator screen ...
Change apln.. run again... switch to emulator screen.. displays new info in 2 or 3 secs ...
Re: Hello World - works out of the box - just slow - how to speed-up
Your lucky you even got it RUNNINIG on Windows XP!!! I tried for about an hour, I kept reading the instructions and still couldn't understand why it wasn't working. Nothing ran. So after about an hour I just gave up and went. To my Ubuntu Linux PC and got it running in like 5 minutes!!!?!?!?!?!?
How the hell????? I know a whole LOT more about XP than Linux.... I really don't what happened there. Either way, I set it up on Ubuntu and everything's perfect. Everything runs quick, so I'm not sure why it runs slow for you on Windows XP.
Re: Hello World - works out of the box - just slow - how to speed-up
The first time the emulator starts up it needs to create a bootable image which can take some time. As you said once the emulator is up and running its much quicker if you just leave it open.
Re: Hello World - works out of the box - just slow - how to speed-up
Worked fine for me on XP, but yes it needs to create a new instance of a virtual running Android device, which takes some time when you launch the emulator first, just keep it open afterwards, it's designed so it will incorporate any changes you make in the code on the fly (most of the times)
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);
}
}
First time "Hello World" ran successfully but second time
it didn't ran at all .
Eclipse lauch the emulator but every time at the following step it stops
"Starting activity com.example.helloandroid.HelloAndroid on device emulator-5554"This information is showed in console.
Re: Hello World - works out of the box - just slow - how to speed-up
Hi Wisdom,
I have exactly the same problem! I have found out that on my computer, the AVD only works once. I need to create a new AVD each time I want to run Hello Wolrd.
Bookmarks