如何阻止 AVD 中出现解锁屏幕?
当我从 Eclipse 运行程序时,模拟器会在屏幕上显示一个挂锁,然后我必须单击该挂锁(在两个位置两次)才能允许运行应用程序。
有什么方法可以绕过这个问题以便应用程序立即运行吗?
When I run a program from Eclipse, the emulator appears with a padlock on the screen, which I then have to click on (twice, in two locations) before the application is allowed to run.
Is there any way to bypass this so that the application runs immediately?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不要在每次运行应用程序时关闭模拟器,您只需在第一次时将其解锁。
如果失败,有一个 adb bash 命令可以解锁你的手机。虽然我不知道如何使用 eclipse 和模拟器来实现它:
Don't close your emulator everytime you run your application, you will only have to unlock it the first time.
Failing that there is a adb bash command that will unlock your handset. Although I can't see how you would get this working with eclipse and the emulator: