Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The Android emulator is out of view, how can I move it?

I used an additional display with my laptop and moved the Android emulator there. It seems to remember the location even if the display is not connected anymore.

Is there any way to reset the position of the window so it becomes visible again?

like image 427
Hugo Zapata Avatar asked Jul 20 '12 03:07

Hugo Zapata


People also ask

How do I resize my emulator screen?

With Android Studio 2 now you can resize your window simply by dragging a corner.

How do I make Android Emulator full screen?

Alt+Enter is the keyboard shortcut to toggle full screen mode in the emulator, just do it again to exit full screen.

How do I view Android Emulator?

Run your app on the emulator After you have created an Android Virtual Device (AVD), you can start the Android Emulator and run an app in your project: In the toolbar, select the AVD that you want to run your app on from the target device drop-down menu. Click Run.


2 Answers

You can use this Method for moving any window that is off the screen in a windows environment.

  • First Select the window either by Alt-Tab or Click clicking it
  • Press Alt & Space keys together
  • Press "M" or select it with the mouse Use your arrow keys to move the Window
  • Press Enter to exit

This is far easier than editing any files.

like image 124
Darryn Hosking Avatar answered Oct 11 '22 21:10

Darryn Hosking


more exactly from your home directory

(on Linux: $HOME/ on Windows: C:\Users\<your user> ) go into

.android/avd/<image name> 

open the file emulator-user.ini and set window.x and window.y to 0.

window.x = 0 window.y = 0 

If you don't see the hidden dir .android on Linux press Ctrl+H and from Windows select View>Options>View (Tab) and select "Show hidden files"


EDIT:

If the file emulator-user.ini doesn't exist, close the emulator window, then check the avd directory again. This is because emulator-user.ini is generated after the first run of the emulator.

like image 30
lory105 Avatar answered Oct 11 '22 22:10

lory105