aspose file tools*
The moose likes Android and the fly likes emulator window was out of view and was recentred Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "emulator window was out of view and was recentred" Watch "emulator window was out of view and was recentred" New topic
Author

emulator window was out of view and was recentred

Mr Anil Kumar Pandey
Greenhorn

Joined: Sep 13, 2010
Posts: 29
[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

Joined: May 14, 2008
Posts: 5842
    
    7

Please provide the source code for your app and the layout file.


JBoss In Action
Mr Anil Kumar Pandey
Greenhorn

Joined: Sep 13, 2010
Posts: 29
sure sir following are the only coding




Layout File


Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5842
    
    7

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.



[Thumbnail for android.png]

[Thumbnail for android2.png]

pinky garg
Greenhorn

Joined: Jul 25, 2011
Posts: 1
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

Joined: May 14, 2008
Posts: 5842
    
    7

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: emulator window was out of view and was recentred