This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

emulator window was out of view and was recentred

 
Mr Anil Kumar Pandey
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[2011-07-25 17:37:49 - androidTest] ------------------------------
[2011-07-25 17:37:49 - androidTest] Android Launch!
[2011-07-25 17:37:49 - androidTest] adb is running normally.
[2011-07-25 17:37:49 - androidTest] Performing com.taxmann.AndroidTestActivity activity launch
[2011-07-25 17:37:49 - androidTest] Automatic Target Mode: launching new emulator with compatible AVD 'TaxmannAVD'
[2011-07-25 17:37:49 - androidTest] Launching a new emulator with Virtual Device 'TaxmannAVD'
[2011-07-25 17:37:53 - Emulator] emulator: warning: opening audio output failed
[2011-07-25 17:37:53 - Emulator]
[2011-07-25 17:37:53 - Emulator] emulator: emulator window was out of view and was recentred
[2011-07-25 17:37:53 - Emulator]
[2011-07-25 17:37:53 - androidTest] New emulator found: emulator-5554
[2011-07-25 17:37:53 - androidTest] Waiting for HOME ('android.process.acore') to be launched...
[2011-07-25 17:38:32 - androidTest] HOME is up on device 'emulator-5554'
[2011-07-25 17:38:32 - androidTest] Uploading androidTest.apk onto device 'emulator-5554'
[2011-07-25 17:38:32 - androidTest] Installing androidTest.apk...
[2011-07-25 17:38:52 - androidTest] Success!
[2011-07-25 17:38:52 - androidTest] Starting activity com.taxmann.AndroidTestActivity on device emulator-5554
[2011-07-25 17:38:53 - androidTest] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.taxmann/.AndroidTestActivity }
[2011-07-25 18:05:33 - androidTest] ------------------------------
[2011-07-25 18:05:33 - androidTest] Android Launch!
[2011-07-25 18:05:33 - androidTest] adb is running normally.
[2011-07-25 18:05:33 - androidTest] Performing com.taxmann.AndroidTestActivity activity launch
[2011-07-25 18:05:33 - androidTest] Automatic Target Mode: launching new emulator with compatible AVD 'TaxmannAVD'
[2011-07-25 18:05:33 - androidTest] Launching a new emulator with Virtual Device 'TaxmannAVD'
[2011-07-25 18:05:36 - Emulator] emulator: warning: opening audio output failed
[2011-07-25 18:05:36 - Emulator]
[2011-07-25 18:05:36 - Emulator] emulator: emulator window was out of view and was recentred
[2011-07-25 18:05:36 - Emulator]
[2011-07-25 18:05:36 - androidTest] New emulator found: emulator-5554
[2011-07-25 18:05:36 - androidTest] Waiting for HOME ('android.process.acore') to be launched...
[2011-07-25 18:06:16 - androidTest] HOME is up on device 'emulator-5554'
[2011-07-25 18:06:16 - androidTest] Uploading androidTest.apk onto device 'emulator-5554'
[2011-07-25 18:06:16 - androidTest] Installing androidTest.apk...
[2011-07-25 18:06:35 - androidTest] Success!
[2011-07-25 18:06:35 - androidTest] Starting activity com.taxmann.AndroidTestActivity on device emulator-5554
[2011-07-25 18:06:36 - androidTest] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.taxmann/.AndroidTestActivity }


the screen that should display "Hello, World" does not display.
i waited upto 30 minuts

Please help us
thanks sir
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please provide the source code for your app and the layout file.
 
Mr Anil Kumar Pandey
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sure sir following are the only coding




Layout File


 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your code works just fine for me, see attached image.

You did unlock the Android emulator, right? No apps will show up until you move the unlock bar (at the bottom of the emulator) to the left. See the top image.

android.png
[Thumbnail for android.png]
android2.png
[Thumbnail for android2.png]
 
pinky garg
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sir i too had written the same source code mentioned above but the emulator is not opening and console displays:

[2011-07-27 23:02:29 - Project2] ------------------------------
[2011-07-27 23:02:29 - Project2] Android Launch!
[2011-07-27 23:02:29 - Project2] adb is running normally.
[2011-07-27 23:02:29 - Project2] Performing com.pro3.Project2Activity activity launch
[2011-07-27 23:02:29 - Project2] Automatic Target Mode: launching new emulator with compatible AVD 'Phone1'
[2011-07-27 23:02:29 - Project2] Launching a new emulator with Virtual Device 'Phone1'
[2011-07-27 23:02:32 - Project2] New emulator found: emulator-5554
[2011-07-27 23:02:32 - Project2] Waiting for HOME ('android.process.acore') to be launched...
[2011-07-27 23:02:33 - Emulator]
[2011-07-27 23:02:33 - Emulator] This application has requested the Runtime to terminate it in an unusual way.
[2011-07-27 23:02:33 - Emulator] Please contact the application's support team for more information.
[2011-07-27 23:02:33 - Project2] emulator-5554 disconnected! Cancelling 'com.pro3.Project2Activity activity launch'!

while the same code displayed the output when last time i run it.....
i could not understand why and what had happened this time......
please help me.....thank you sir...

 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pinky, welcome to Java Ranch!

There seems to be a configuration issue with your Android SDK installation. You might try creating a new AVD, or at least double-check the settings on the AVD you are using. If that fails, I would reinstall both Eclipse and the Android SDK.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic