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


71

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?


在此处指定操作系统可能会有所帮助。很高兴您能同样解决问题
FellowMD

Answers:


67

更确切地说是从您的主目录

(在Linux上:$HOME/ 在Windows上C:\Users\<your user>:)进入

.android/avd/<image name>

打开文件emulator-user.ini并将window.x和window.y设置为0。

window.x = 0
window.y = 0

如果.android在Linux上看不到隐藏目录Ctrl+H,请从Windows中选择“视图”>“选项”>“视图(Tab)”,然后选择“显示隐藏文件”


编辑:

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.


为什么我在路径下找不到文件emulator-user.ini
Lou先生

如果找不到emulator-user.ini,则创建它
Ahmed Ghonim,

193

您可以使用此方法在Windows环境中移动屏幕外的任何窗口。

  • 首先通过Alt-Tab或单击来选择窗口
  • 同时按Alt和Space键
  • 按“ M”或用鼠标选择它。使用箭头键移动窗口
  • 按Enter退出

这比编辑任何文件容易得多。


完美 最后使用箭头键。
库舒布2015年

Worked fine on Win7 x64. Thanks!
Kris Krause

Using the arrow keys worked for me while editing the emulator-user.ini file stopped working (tried both API 21 & 22 AVDs).
code_flow

Sorry, I know this is the standard Windows short-cut for moving windows, however, for some reason I'm not able to move my AVD window at all. It's immovable. :(
Yellen

20

It was easy. I opened the avd location and the file emulator-user.ini contains the location and can be changed.

Maybe someone else needs it.


1
我在Windows 7上遇到了这个问题,答案解决了我的问题。我只希望我知道最初如何将模拟器移出视线...之所以令人沮丧,是因为Alt-Tab充分展现了该模拟器的魅力,诱人地接近但却遥不可及:)
gcbound

4
方向键使用Alt +空格键有效(我的鼠标不起作用)。
克里斯·克劳斯

^鼠标只会在标题栏出现在屏幕上时起作用,因此箭头键一直显示在屏幕上,然后您“应该”可以用鼠标进行其余的移动。2015 \ m /
straya


5

首先,转到您的AVD管理器部分,然后单击它,然后

enter image description here

  1. 右键单击您的虚拟手机并查看“在磁盘显示”并单击它

  2. 然后,您会看到您的AVD驱动器emulator-user.ini,然后再看到open它。

  3. 设定值 window.x = 0 window.y = 0

  4. 关闭并重新启动您的项目和AVD


2

Alt + Space可以正常工作。emulator-user.ini的答案对我不起作用。

谢谢。


1

对于Windows 10用户,只需按

ctrl + alt + up_arrow_key

边注:

ctrl + alt + left_arrow_key
ctrl + alt + right_arrow_key
ctrl + alt + down_arrow_key

这将旋转您的屏幕


0

For Windows operating system Control panel -> Programs -> Turn window features on or off -> check Telnet client and Telnet server option -> ok

now open your cmd as administrator come to your 'c' drive path using cd\

C:\Users\Harin>cd\

C:\telnet localhost 5554

now it's open new window write

window scale 0.3

here 5554 is your emulator screen number and 0.3 is your screen size, you can change as you want for example 0.2 or 0.4 etc


0

if you see the toolbar next to it but don't see the emulator, click on the zoom button and it will appear.


0

In my case none of the answers related to move the emulator window worked.

To make it work with "scale and layout" NOT in 100% (as I had in my case) I had to do this

Also did this (not sure if necessary, but in case somebody needs it):

I had to right click on desktop, then "display properties", then "Advanced scaling settings", then set the scaling to 100% (I had it in 250%), then open the emulator and resize it as small as possible and put it in the top left of my screen. Then "Turn off custom scaling and sign out", then I could see and resize my emulator window.


0

If you are using Mac and you aren't able to move the emulator by normal dragging the emulator then do this.

  1. Display Mission Control using control + arrow up.
  2. Move the emulator to your new window/monitor.
  3. click on the emulator or control + arrow down

done!

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.