PDA

View Full Version : Help! Application not displayed on emulator



jandfus
12-10-2007, 10:27 PM
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? :confused:

bloggins
12-16-2007, 01:50 AM
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)

jandfus
12-17-2007, 01:53 AM
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.

Ishtar
12-20-2007, 12:03 PM
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!

jandfus
12-25-2007, 08:20 PM
i even waited for a few hours, but nothing happened..

Ishtar
12-28-2007, 03:31 PM
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) )

jbrohan
01-14-2008, 04:49 PM
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

balajimani
01-21-2008, 03:20 AM
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.

libertino
05-30-2008, 04:46 AM
If you clean the cache in your home dir, it will help




http://phandroid.blogspot.com/

droidattack
11-04-2008, 10:10 AM
I have/had the same issue, and part of the answer might involve running adb kill-server from <androidsdk>\tools directory.

anishsneh
01-04-2010, 03:48 PM
Hi

I'm facing the same issue, Ive killed abd server as well, but nothing happened. It just hangs at "HelloAndroid]Launching a new emulator with Virtual Device 'Android1.6'
"

My source code is fine as it worked once, as I tried second time to rerun it hanged and nothing happeps after this line I ve tried manier time even after restarting eclipse,machine and AVD.

Env. CentOS 5.4


Please suggest
TIA
Anish Sneh

EmHonaise
05-26-2010, 04:27 AM
I had the same problem on Os X. When I clicked the menu button on control panel the app showed up.

lemonade
09-07-2010, 03:59 PM
I'm new to Android and java and had the same problem.. one work around seems to be to open up the AndroidManifest.xml and enter a Version Number ( I just alternate between 1 and 2) this seems to force eclipse to do a new compilation and uploads the app to the emulator.