+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Help! Application not displayed on emulator

  1. #1
    Join Date
    Dec 2007
    Posts
    4

    Unhappy Help! Application not displayed on emulator


    I use eclipse to do the HelloAndroid application. When i run it, the emulator starts but nothing is displayed. The emulator just stays at the home screen. And the console doesn't show any error.

    here is the console shows:
    [2007-12-11 11:19:12 - HelloAndroid] ------------------------------
    [2007-12-11 11:19:12 - HelloAndroid] Android Launch!
    [2007-12-11 11:19:12 - HelloAndroid] Launching: com.mediacorp.android.hello.HelloAndroid
    [2007-12-11 11:19:12 - HelloAndroid] Launching the emulator.

    I tried to follow the troubleshooting of "Eclipse isn't talking to the emulator", it doesn't work. Who can help?

  2. #2
    Join Date
    Dec 2007
    Posts
    5

    Default

    In order to help, we'll need some more information. For example:

    - What's your platform (OS/Eclipse version/etc...)
    - What code are you trying to run? Is it a DIRECT copy of the hello world app from Google, or are you trying from scratch and/or have modified it? If so, we'll need to see your code (or at least the code for the Activity class to start)

  3. #3
    Join Date
    Dec 2007
    Posts
    4

    Default

    My platform is Windows XP
    Eclipse version is 3.3.1.1

    I downloaded the android sdk, and followed the steps in documentation.html inside the sdk package to set up the environment. Below is my HelloWorld class:

    -----------------------------------------

    package com.google.android.hello;

    import android.app.ListActivity;
    import android.os.Bundle;
    import android.widget.TextView;

    public class HelloWorld extends ListActivity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle icicle) {
    super.onCreate(icicle);
    TextView tv = new TextView(this);
    tv.setText("Hello, Android");
    setContentView(tv);
    }
    }
    ---------------------------

    The code is almost the same as helloAndroid class.

  4. #4
    Join Date
    Dec 2007
    Posts
    4

    Default

    Do you wait long enough? Depends a bit on your computer, but it can take a few minutes to start your application. I really need a new pc, because Im waiting for at least 2 minutes!

  5. #5
    Join Date
    Dec 2007
    Posts
    4

    Default

    i even waited for a few hours, but nothing happened..

  6. #6
    Join Date
    Dec 2007
    Posts
    4

    Default

    hmm, strange. What happens when you start the emulator from a console? After a while you see a wallpaper, and be able to browse the web. If you execute with -verbose, you'll see lots of bla bla's (i don't got a clue what it means), i hope it'll also say if something is not working.. (I assume you know how to start it from console (cmd.exe) )

  7. #7
    Join Date
    Jan 2008
    Posts
    2

    Default

    Hi Jandfus
    I'm in a similar situation to you...why are you using ListAcivity it's Activity in my version?
    I waiteed a Long time 5-10 minutes before it did anything...then it showed a bunch of icons which did something!

    John

  8. #8
    Join Date
    Jan 2008
    Posts
    1

    Default

    Hi,

    I have add a new project in Eclipse. While running the applicatrion using the android emulator its not comming in the emulator. The remaning Sample applications are comming properly.

    Kindly help me out in this regards,

    Thanks in advance,

    Thanks and Regards,
    Balaji.

  9. #9

    Default

    If you clean the cache in your home dir, it will help




    http://phandroid.blogspot.com/

  10. #10
    Join Date
    Nov 2008
    Posts
    1

    Default Re: Help! Application not displayed on emulator


    I have/had the same issue, and part of the answer might involve running adb kill-server from <androidsdk>\tools directory.

+ Reply to Thread
Page 1 of 2 12 LastLast

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