Immersive mode locking app on Nexus Tablet - android

I just ran in to to an issue with immersive mode locking my app when testing on a android tablet (nexus7).
The only way to exit the lock was to swipe up to get back the software navigation bar and exit immersive mode.
How do I prevent this? What is happening?

The issue only appears when trying to enter immersive mode on a non-owner account. Android tablets support multiple users but apperently only one of them is considered "owner" According to issue https://code.google.com/p/android/issues/detail?id=62366 the problem is known by google but no fix as of yet.
The problem is that the helpscreen that pops up is hidden/invisble but is still receiving the touchevents. It can be removed by clicking in the correct location but it can be somewhat tricky to find it when you have no visual clues as to where to click.
Hope this helps save someones time!

Related

Disable Android navigation in Kiosk Mode (Android Management API)

We have a Kiosk mode setup completed using Android Management API with our launcher app acting as kiosk app. However customizations applied through policy are not working as per expected.
"kioskCustomization": {
"systemNavigation":"HOME_BUTTON_ONLY",
"statusBar":"SYSTEM_INFO_ONLY",
"deviceSettings":"SETTINGS_ACCESS_BLOCKED"
}
We have this in the policy and it is getting synced to device but still all buttons in navigation bar working and still we can able to access settings.
What we need to do in order to disable navigation bar in kiosk mode? If we have app in full screen it is just hiding them but not disabling them.
Also is there way to disable gestures also?
I also noticed that when I applied:
"kioskCustomization": {
"systemNavigation":"NAVIGATION_ENABLED"
}
That it didn't work when I had the "installType":"KIOSK" set for an app, so this might indeed be a bug. Are you in kiosk mode via installType, then?
A workaround is to set "kioskCustomLauncherEnabled":true and then manually launch the app. This sort of defeats the purpose of having an app that can launch into kiosk mode on boot, but I've noticed with my app that if I am in kiosk mode via "kioskCustomLauncherEnabled":true, then it will properly apply the kioskCustomization settings.
I've been struggling with this issue for days! Finally found that it was the App I was using as my launcher app that was causing the issue.
For anyone else struggling with this, I suggest you set the Calculator app (com.google.android.calculator) as your Kiosk app and see if you're still getting the same issue. If not you know it's something to do with the app you're setting as the KIOSK app.
For me, the issue came from me including the following in the main actiivty intent-filter:
category android:name="android.intent.category.HOME"
As soon as I removed that the kioskCustomization worked perfectly.

Hide navigation bar on rooted android device

I have a custom rooted android tablet working on Android M version. We built a kiosk application and next step is removing navigation bar completely, while our application is working. Also, when administrator close our application, navigation bar should appear again.
Before asking this question, I researched on Internet and find a lot of people have this problem. However, answers to theirs question were generally, making application to work in full-screen mode or in immersive full-screen mode.
These answers didn't help me at all, because user still can fling on screen and navigation bar would show again. These solutions are probably the best that can be done with an unrooted device, but in my case I need a better solution and my device is rooted.
Also, I saw this answer link, but after using this command my desktop went black, and couldn't reboot android system again. Happily I have recovery USB so my device is working again. :)
I found another answer link, and like others, didn't help me because I need to reboot system after adding line of code (qemu.hw.mainkeys = 1). Also, solution that I looking for is fully dynamical and done by code.
I am really convinced that this isn't mission impossible, because we had old tablet (also rooted) with button in back, which can hide and show navigation bar without rebooting it.
Any help is appreciated.
I can't help you with your problem, but provide a little more information.
The company im working for is using devices in kiosk mode, but we have custom android devices from a hardware producer, which provides a custom HAL interface. We can set the kiosk mode via that interface.
My guess is it cant be done easily, if it was easy, we would have not gone that way. Hope it helps.

Android 4.4+ how to make a app become Screen Lock

I got a problem about how to create a simple Screen Lock for my Android devices (4.4.2)
I tried some ways, including disabling back, home and recent keys, but as far as I know, since android 4, I can't disable home and recent keys anymore due to security, so only back key is disabled.
I don't know what to do to handle this.
Any suggestions?
Please let me know.
Thank you in advanced

Android : Guided Mode

Is it possible to lock the screen on Android (similar to guided access in iPad) ? I have tried few of the apps but they do not really lock the screen down. I want my two year to use it to watch videos and that is the reason behind it.
This works beautifully on the ipad (unfortunately its broken now).
No you can't do it in android. the hackaround for this you would have seen in other apps like dim brightness and fullblack image over the window.
are you looking for a ppl or writing a new program but don't want the user to close it or switch screen?
if so you may try to disable the home button the android deivce and set a password to prevent the user from exiting
don't know if this help

Lock screen rotation for **ALL** Android Apps on a device

this is my first post so please correct me if I do any mistake regarding rules :-)
Heres my problem:
I am trying to set a fixed screen rotation for all Apps on an Android device
(not just my App). I searched a lot but found only solutions for single Apps.
I had the following Ideas:
1) Use the API ==> seems not possible
2) Change accelerometer values ==> seems not possible
3) virtually open a hardware keyboard ==> seems not possible
Turning off autorotation keeps all Apps in portrait mode, but I would like all
Apps to be in landscape mode.
Can anybody help me please?
At least for Android 4.2. (Nexus 7) you can hold device in landscape mode and then disable autorotation. Afterwards all apps work in landscape mode.

Categories

Resources