java - 如何退出屏幕固定 - Android 5(模拟器)

标签 java android android-emulator android-5.0-lollipop android-screen-pinning

Screen Pinning ( as mentioned on this page ) 是 Android 5 (Lollipop) 中引入的一项新功能,它允许用户暂时将一个 Activity 锁定在屏幕上。激活屏幕固定后,所有其他通知都会隐藏。

可以采取以下步骤来激活屏幕固定

Users can enable screen pinning in Settings > Security > Screen Pinning, and select the tasks they want to pin by touching the green pin icon in the recents screen.

要退出屏幕固定,用户可以执行以下操作

the user can exit by holding both the Back and Recent buttons

我想问的是

Is there any way to exit from Screen Pinning on Android Emulator for 5.0?, as we won't be able to press both Back and Recent buttons at same time with mouse?

谢谢。

最佳答案

您可以使用 adb 命令取消固定:adb shell am task lock stop

关于java - 如何退出屏幕固定 - Android 5(模拟器),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27437203/

相关文章:

java - 如何禁用 javamail SSL 支持?

java - 无法解析 ChildAdapter

android - 如何删除我的 Android 模拟器上的 SQLite 数据库?

c# - google avd 和 3g 打开

java - 无法通过 tomcat 中的 websocket 发送二进制消息,但可以在 glassfish 中使用。在 tomcat 中失败并出现 IllegalArgumentException

java - 在 Java 中从时间戳到日期

java - Java错误不是语句和 ';'预期

iphone - 您能否向移动设备提供 HTML 输入字段仅为数字的提示?

android - OpenGL ES 2.0 中的光线拾取

android - 如何在 eclipse 中安装旧版本的 google api?