-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set status bar icons visible #29
Comments
Hi No1e, From my understanding, StartLockTask (Kiosk Mode) lock the device on the current Activity, and restrict access to anything else. The top status bar is the top menu and is hidden too. I faced this issue too, and create my own "Status app", whitelisted for Kiosk Mode (and thus accessible for end user) and display all the information I want (battery level, data consumtion...) |
Hi Jeremy, It seems that we are not the only ones that have this problem, but I have not found that there is really support in Android API to enable this. I noticed couple of other problems in the current features list of DPC/Lock Task mode ... Well, its a bit more complex than what you described, depending if your app is device owner or not... In my case, I have admin app that is device owner and has the following features:
I have workaround to include foreground service in my admin app, This service will create "custom" status bar (draw over other apps) and put there notifications that I need. But, I would like to avoid this if possible by using Android API to save battery that will be used for those activities. |
Thanks for the suggestion. |
Closing, and stay tuned :) Thanks |
Hi is it possible to unhide the home and recents button while still in the locktask mode. I understand they are disabled, and that is okay |
Nope.
Sent from my Windows 10 phone
From: namputo<mailto:notifications@github.com>
Sent: Saturday, January 20, 2018 10:23 AM
To: googlesamples/android-testdpc<mailto:android-testdpc@noreply.github.com>
Cc: Novak Savic<mailto:novak.savic@hotmail.com>; Author<mailto:author@noreply.github.com>
Subject: Re: [googlesamples/android-testdpc] Set status bar icons visible (#29)
Hi is it possible to unhide the home and recents button while still in the locktask mode. I understand they are disabled, and that is okay
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#29 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AYWB_fim76zRLgbB8D-R1E5FEPQ7i-F2ks5tMbCWgaJpZM4MxILP>.
|
As of Android 9 this has become possible using The status bar (and other features) can be shown whilst in lockTask mode like so:
From the Android docs:
|
"Kiosk Mode" is very nice feature especially how it can be implemented in Android 6, but there is one thing that is nor very nice. Entering lock task mode makes status bar icons invisible (including battery status and wireless status).
"Kiosk Mode" is normally used on company owned devices, often industrial Android base devices from different vendors (Honeywell, Zebra, ...), where user is allowed to use single application or only restricted set of applications. User often work off their desks (e.g. warehouse...). Since user productivity depends of health of device, it is essential to have those icons back since users has to know when there is a problem with wireless, and especially what is the status of battery so they can schedule battery recharge or replace. Those devices are not like user consumer mobile devices where you can plug in charger and use it even when device is on the charger (making calls etc.).
The text was updated successfully, but these errors were encountered: