Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to exit from Screen Pinning - Android 5 (Emulator)

Screen Pinning (as mentioned on this page) is a new feature introduced in Android 5 (Lollipop) which lets its users to temporarily lock only one Activity to the screen. All other notifications are hidden when screen pinning is activated.

Following steps can be taken to activate Screen Pinning

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.

And to exit from Screen Pinning user can do the following

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

What I wanted to ask is

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?

Thanks.

like image 793
gprathour Avatar asked Dec 12 '14 05:12

gprathour


2 Answers

You can unpin with an adb command: adb shell am task lock stop

like image 184
Pierre-Yves Ricau Avatar answered Oct 23 '22 02:10

Pierre-Yves Ricau


We cannot exit from the Screen Pinning Mode manually from the Emulator as we will not be able to press both Back button and Recents button at same time.

However if we restart the emulator the screen pinning is turned off automatically.

There is no other way around to do it.

like image 20
gprathour Avatar answered Oct 23 '22 01:10

gprathour