简体   繁体   English

使用Eclipse教程,说明说“解锁模拟器”

[英]Using Eclipse tutorial, instructions say “unlock the emulator”

Newbie trying to get hello world to work. 新手试图让你好世界工作。 Eclipse tutorial says to "unlock the emulator" what does this mean and how do I do it? Eclipse教程说“解锁模拟器”是什么意思,我该怎么做? Also when I start the emulator my CPU meter pegs at 100% and stays there. 此外,当我启动模拟器时,我的CPU计量器固定在100%并保持在那里。 Can't really do much after that. 之后真的不能做太多。 Is the emulator really that CPU intensive? 模拟器真的是CPU密集型吗?

Eclipse tutorial says to "unlock the emulator" what does this mean and how do I do it? Eclipse教程说“解锁模拟器”是什么意思,我该怎么做?

The Android emulator behaves like an Android device. Android模拟器的行为类似于Android设备。 The second and subsequent times you start it, it will boot through to a lockscreen, which you swipe to unlock the same way as you do a device. 第二次以及随后的启动时间,它将启动到锁定屏幕,您可以按照与设备相同的方式进行解锁。

Also when I start the emulator my CPU meter pegs at 100% and stays there. 此外,当我启动模拟器时,我的CPU计量器固定在100%并保持在那里。 Can't really do much after that. 之后真的不能做太多。 Is the emulator really that CPU intensive? 模拟器真的是CPU密集型吗?

That depends a bit on the development machine. 这取决于开发机器。 The ARM emulator is CPU-intensive. ARM仿真器是CPU密集型的。 You are welcome to switch to the x86 emulator if your development machine is compatible. 如果您的开发机器兼容,欢迎您切换到x86模拟器

Just swipe upwards to unlock the emulator so that it can run apps. 只需向上滑动即可解锁模拟器,以便它可以运行应用程序。 This can be done simply like the way you unlock your android smartphone 这可以像解锁Android智能手机一样简单地完成

You can lock your Emulator Device by running this command from command prompt adb shell input keyevent 26 您可以通过从命令提示符adb shell input keyevent 26运行此命令来锁定仿真器设备

You can unlock your Emulator Device by running this command from command prompt adb shell input keyevent 82 您可以通过从命令提示符adb shell input keyevent 82运行此命令来解锁您的仿真器设备

After running the unlock command, you might have to wait for some minutes. 运行unlock命令后,您可能需要等待几分钟。 Above Unlock command will work, when you does not have any security lock 当您没有任何安全锁时,上面的解锁命令将起作用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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