Questions tagged [android-screen-pinning]

An api to make an app running in kiosk-mode. Available since api level 21 : Android-5.0-Lollipop

The Screen Pinning API is presented here. It is available since API level 21 (Lollipop) and mainly contains 2 methods to enter and exit the screen-pinning-mode:

When an app is in screen-pinning-mode : all usual methods to navigate between apps are blocked. For instance the "Home" and "Recent Apps" buttons are not active. (more details here)

In general, activating screen-pinning-mode requires user confirmation. One exception to this rule: the current device owner app have the ability the grant "the right to enter screen-pinning-mode without user approval" by calling DevicePolicyManager.setLockTaskPackages

55 questions
22
votes
3 answers

Android: How to make device run only one app?

I have an customer project where I have to make single task android device. Customer isn't able to escape the application which my company have developed. Also customer isn't able to start any other application and our application is started when…
Nahka
  • 416
  • 1
  • 6
  • 16
17
votes
3 answers

Screen pinning 3rd party apps programmatically

After achieving device ownership, I am trying to implement a method to instruct the device to lock any given app into kiosk mode (or screen pinning mode). Since I have device ownership, the user is not asked for the permission to do so. From the…
16
votes
1 answer

Marking cursor Clicks/Taps/Double Taps in Android Studio Screen Recorder

Android Screen Recorder is a great tool for capturing the Android Screen but is there a way to highlight the clicks and Taps as well while we navigate the App on the Android Phone/Emulator screen?
Raulp
  • 7,758
  • 20
  • 93
  • 155
16
votes
6 answers

Activity.startLockTask() occasionally throws IllegalArgumentException

I currently have a periodic issue where I get an IllegalArgumentException when I call Activity.startLockTask(). My app has a device owner app installed which has allowed my package to automatically pin itself. The code below is checking to make sure…
Randy
  • 4,351
  • 2
  • 25
  • 46
12
votes
1 answer

How can I send a string through NFC while Screen-Pinning?

I am trying to send a String through NFC while my app is using screen pinning. It does not work: The transfer does not happen; but if I disable the screen pinning the transfer of the String works. I can disable screen pinning for a bit and then…
12
votes
1 answer

How to check if an activity is locked (app pinning) in android Lollipop

I would like to know whether an activity is locked under app pinning in android 5.0 and above programatically. Please help me in this! Thanks!
11
votes
4 answers

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…
8
votes
2 answers

Method to test whether the current task is locked?

I'm playing around with the task locking API on a Nexus 4 running Android 5.0.1. My device owner app consists of two buttons: "Lock" and "Unlock", which simply call startLockTask() and stopLockTask(). That's really all there is to it, but since…
Kevin Krumwiede
  • 9,868
  • 4
  • 34
  • 82
7
votes
3 answers

Android Kiosk Mode - Preventing users from "unauthorized" unpinning the application

I am pretty new to android and I am currently developing an Android App that should run in KioskMode, so that a normal user can't exit the application or do anything outside of it. What I already did: I set my app as a device owner I "screen pin"…
6
votes
0 answers

Draw-overs still appear while app is in Pin Mode

I am making an educational app and I take advantage of pin mode to lock the users in my app but the draw-overs still appear on top of the app even when the app is in pin mode. Apps like Facebook Messenger can draw over the app while the app is in…
Antonio
  • 221
  • 1
  • 4
5
votes
1 answer

Activity.startLockTask() from one Activity to another Activity

I am using Activity.startLockTask() and have noticed that if I pin the screen in Activity A, I am unable to transition to Activity B. It seems like I have to startLockTask() and then stopLockTask() and then startLockTask() again on Activity B. Is…
portfoliobuilder
  • 7,556
  • 14
  • 76
  • 136
5
votes
1 answer

startLockTask() without request user action

I want to activate startLockTask() without any request for users. So at first i read this Device Administration and create small sample application. In result i have my application in device administrators list but when i call startLockTask() it…
Yevhen
  • 791
  • 9
  • 24
4
votes
2 answers

Launch another app in Kiosk Mode from a device owner app in Android Lollipop

Is there any possibility to start another 3rd party app locked down in Kiosk Mode on Android L? It would be great to be able to do such a thing without the use of root access. But if this is not possible without the use of root access, it would also…
4
votes
1 answer

Android - Does Lollipop Screen pinning work across multiple activities in the same app?

I'm attempting to add kiosk functionality to an android application. I'm hoping to take advantage of Lollipop's screen pinning feature to automatically pin the app once it starts. The app UI has been built with several different activities. I call…
3
votes
2 answers

Bluetooth pairing dialog not showing up in Screen Pinning mode

I'm writing an enterprise inspired app based on Device Policy Manager. The app will enable kiosk mode on the device so only one app will be in the foreground & the user won't be able to get out of the app. My app whitelists the particular app that's…
1
2 3 4