the application can't be displayed on the emulator

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

the application can't be displayed on the emulator

Postby jackborton » Tue Jul 27, 2010 7:57 pm

Hi guys,

I'm starting with android and writing my first helloworld program, I found a problem. The emulator does not show nothing. I was reading the other posts but there wasn't anything to help out. I was thinking that maybe there was something wrong with the installation, so I did again but the problem remains.

So this is the messages that appear on the console:

[2010-07-27 20:42:20 - HelloAndroid2] HOME is up on device 'emulator-5554'
[2010-07-27 20:42:20 - HelloAndroid2] Uploading HelloAndroid2.apk onto device 'emulator-5554'
[2010-07-27 20:42:20 - HelloAndroid2] Installing HelloAndroid2.apk...
[2010-07-27 20:43:34 - HelloAndroid2] Success!
[2010-07-27 20:43:34 - HelloAndroid2] Starting activity com.example.hello2.HelloWorld on device
[2010-07-27 20:43:46 - HelloAndroid2] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.hello2/.HelloWorld }


Once Poster
Once Poster
Posts: 1
Joined: Tue Jul 27, 2010 6:55 pm


Re: the application can't be displayed on the emulator

Postby blundell » Fri Jul 30, 2010 8:54 am

The emulator does not show nothing

Means it does show something! :-p

The console messages are normal and your activity has started.

I assume your application looks something like
Code: Select all

class HelloWorld extends Activity {

public onCreate(Bundle b){

If it does, basically your activity is starting and then setting it's contents to be "main".

If you look in your res folder (resources) (R) then in the layout directory (layout) then find a file called main.xml (main) (R.layout.main).

This is what your view is getting set to, now more than likely this is either blank or is just setting a TextView to a string in Strings.xml res/values/strings.xml so either Main.xml is empty or Strings.xml is empty

Go have a play :-)
User avatar
Master Developer
Master Developer
Posts: 1610
Joined: Tue Nov 18, 2008 12:58 pm
Location: UK


Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: No registered users and 5 guests