Android disable right-edge UI in immersive mode? - android

By default in a landscape Android app in Immersive mode, you can show the system UI by swiping from the right edge or the top edge. Is there any way to prevent a right-edge swipe from opening the system UI, so that the system UI can only be opened from the top edge of the screen?

You cannot do this as a security measure. The user should always have a consistent way to reintroduce the status bar, as well as navigation bar on devices with on screen keys. Allowing third party developers to disrupt this would be a terrible idea.

Related

Can a screen overlay be used to simulate user actions on Android and iPhone?

Both Android and iPhone:
With a screen overlay, can it be used to activate parts of the screen, thereby simulating user actions, activating the underlying action areas on the screen, i.e. scrolling?
I found this floating window library but that may do the trick on Android, wondering if anyone else has suggestions?
With a screen overlay, can it be used to activate parts of the screen, thereby simulating user actions, activating the underlying action areas on the screen, i.e. scrolling?
No, on Android. Faking input into other apps has significant security ramifications. On Android, accessibility services have some limited ability to do this sort of thing, which is why Google is starting to restrict their distribution. And, of course, on a rooted device you will have more options.

Android disable notifications shade and soft buttons swipe

I'm making an slideshow app for device running Android. I want to disable notification shade and soft buttons swipe to prevent customers from accessing OS. I know that i can use TYPE_SYSTEM_OVERLAY flag, but it disables touch events, so this is not a solution. Is there are way to achieve what i want? Thanks!
Dedicated devices that should "disable notifications shade and soft buttons" aka kiosk mode, should use screen pinning or task locking. For information about implementation of kiosk mode read Dedicated devices overview and DevicePolicyManager.

How to completely hide the status bar on Android in Immersive full screen mode

I'd like to completely hide the status bar when in Immersive full-screen mode, for the purpose of running a kiosk app. All of the suggested solutions mention methods for preventing the status bar from getting fully expanded, but none show how to completely prevent the status bar from being displayed (then subsequently disappearing) when you drag down on the top of the screen. In Kiosk mode we don't want ANY ancillary activity occurring besides the dedicated app that is running on the device, despite how users may try to interact with the controls or screen.
Thanks in advance!

Android disable quick launch bar on swipe

On some devices with Android 6.0.1, when the user swipes from the right screen edge to the left, the quick launch bar is shown.
Is it possible to disable this programmatically?
On some devices with Android 6.0.1, when the user swipes from the right screen edge to the left, the quick launch bar is shown.
That is not part of standard Android.
Is it possible to disable this programmatically?
Ask the manufacturer of the device that exhibits this behavior.

Hide Home button & disable right side options from system bar

I have found non rooted apps which are capable of hide home button from bottom system bar of tabs (not all the devices but many of samsung tabs) & disabling (not hiding) right side wifi, settings entering panel in system bar (worked in all the testing devices). Good example is remote lock screen of Lookout premium app with BIND_DEVICE_ADMIN permission. This lock screen appears on top of the native android lock screen it has these features work in many devices.
Is there a way to create an activity with disabling System bar like that? Is it related to the flag that adding to the layout params of the activity? Otherwise how this is implemented?
Thanks.

Categories

Resources