简体   繁体   中英

running hello world - not getting hello world on screen

Yeah so im making a bog standard Hello world to make sure android is working. Its my first time working with android so im setting up the enviornment. Ive made the program per: http://developer.android.com/resources/tutorials/hello-world.html

But when i run the program the emulator comes up with the time and date and that its charging. Nothing like the pic in the tutorial. Also the emulator is different though id assume thats cos i made the AVD Android 3.0. Anyone tell me what i need to do to just get Hello World to come up?

It's probably just sitting at the lock screen. Just swipe across or down to unlock, and your app should show up.

I had this also, which led me to this thread.

I left the SDK version field to be blank.

[2011-06-01 21:46:23 - helloWorld] Uploading helloWorld.apk onto device 'emulator-5554'
[2011-06-01 21:46:23 - helloWorld] Installing helloWorld.apk...
[2011-06-01 21:46:45 - helloWorld] Success!
[2011-06-01 21:46:45 - helloWorld] Starting activity com.myhelloworld.MainAct on device emulator-5554
[2011-06-01 21:46:49 - helloWorld] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.myhelloworld/.MainAct }
[2011-06-01 21:47:47 - Emulator] emulator: emulator window was out of view and was recentred
[2011-06-01 21:47:47 - Emulator] 

After this message, I wait for the emulator to boot up and i unlocked it and saw its home screen. After a couple of seconds later, my app showed up.

Set options:

-noaudio -no-snapshot-load

in

Run->Run Configurations...->Target->Additional Emulator Command Line Options

For me it work.

I was having this same issue and the answer is here: running hello world - not getting hello world on screen

You do have to wait a good while the first time you load up the AVD. You do have to swipe or w/e to unlock it. Hit the OK button if you see it. Once you get to the "home page", click on the middle button on the bottom menu. This will bring up the apps on the emulator. Find your Hello, Android app, click on it, and you should see your Hello World.

Just faced the same issue, first time installed Android SDK+Eclipse and tried "Hello, World!", below are steps which helped me figure out what is going on (apologize if this could be worked around in much simple way).

By default when emulator is starting it show "ANDROI D..." text with blinking cursor

  1. Just wait a bit while it load completely
  2. Press Unlock button at the Desctop Screen
  3. When loaded drag to the right "Unlock" button (IMG1)

Also you can find and launch manually your application in the Applications list:

  1. At the bottom of Android Desctop press "Applications" button (IMG2)
  2. From a list of available applications select your application and double click to run

IMG1: Unlock button

*解锁按钮

IMG2: Applications button

**应用程序按钮

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM