+ Reply to Thread
Results 1 to 7 of 7

Thread: Hello World - works out of the box - just slow - how to speed-up

  1. #1

    Thumbs up 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 ...

  2. #2
    Join Date
    Oct 2008
    Location
    Orlando
    Posts
    49

    Default 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.

  3. #3
    Join Date
    Sep 2008
    Location
    California
    Posts
    88

    Default 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.

  4. #4
    Join Date
    Sep 2008
    Posts
    32

    Default 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)

  5. #5
    Join Date
    Dec 2010
    Posts
    1

    Default Hello World Program is not running

    I am new to Android .
    Please help me out to resolve this issue

    I am using following program
    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);
    }
    }

    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.

  6. #6
    Join Date
    Dec 2010
    Posts
    2

    Default 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.

    I use Windows VIsta 32 bit. Which OS do you use.

    AnnaDroid

  7. #7
    Join Date
    Dec 2010
    Posts
    2

    Default Re: Hello World - works out of the box - just slow - how to speed-up


    Dear Wisdom,

    I solved the problem right now by finding the answer at Stackoverflow.com .

    You have to unlock the screen at the emulator by pushing the Menu button. Then the applikation appears.

    Regards, AnnaDroid

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts