I am developing an Application where I need to go completely full screen. In kitkat its very easy by using Immersive tag. But since not all devices support kitkat I need to take JB and ICS (atleast) into consideration.
Well although there is a way of hiding navigation bar and status bar in JB and ICS it becomes visible as soon as the user interacts. This certainly does not looks good. It also takes one extra touch.
I did a lot of searching on net and was surprised that there is no way we can achieve it. I was hoping to find some trick or hack but nothing.
I am pretty sure that before kitkat came there were games which used full screen so I guess there should be a way (like Temple Run and Andgry Birds). Can some one please guide me in correct direction.
P.S: I am looking solution for devices which are not rooted.
Thanks :)
Use a full screen theme, or set it from code as described here https://developer.android.com/training/system-ui/status.html
As I already pointed out in the comments, this will give you full screen. Not the immersive mode as seen on KitKat where the user can easily unhide the status bar. If you're going with the theme approach it's probably best to set a not full screen theme on API19+ (KitKat) and tell it to use Immersive mode from there on.
Related
I have a old problem to put my app in (almost) full screen mode (short edges) in my Android 11 (and now 12) Samsung cell phone as I've explained here.
My app has this look
And I would like this look
Today I've discovered that my app, can be configurated in
Settings, Display, Full Screen Apps.
My app is between the listed apps that allows to select between full screen mode and app default. Many apps don't appear on this list. I don't know what criterion Android uses to select the apps where it's posible to change the screen.
So I managed to change the app screen the way I wanted.
The only question is that the system displayed a white background navigation bar, so I had to add to the style setting in Styles.xml the following line:
<item name="android:navigationBarColor">#android:color/black</item>
However, I would love to do it programmatically. But I don't get it, as you can see here. I did a lot of research, a lot of Stackoverflow research, but nothing.
Could anyone try to help me?
Finally, I've found the solution, which can be read as an answer that I wrote here to my original question .
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.
I am creating a watch face. This watch face contains also battery, charging and connectivity indicators. Now I want the system icons to be hidden, so they don't interfere with watch face indicators when the device is charging or disconnected from the phone. How can I achieve this?
I checked the WatchFaceStyle.Builder class documentation and there seems to be only one related method: setStatusBarGravity. This method can only move indicators around the watch face, but they are still visible.
Is there any other way I'm missing? Or is it simply not possible at all?
Thanks for all your thoughts!
All watch faces are required to show the status icons so you cannot remove them entirely at this time.
The status bar icons can be hidden using setHideStatusBar(true).
This method appears to be currently undocumented and is perhaps only slated for release with Wear OS 2.3. As such, it may not be respected on older devices.
I am trying to build an android app in kiosk-mode in Android 4.2.2 (Jelly Bean). What I have achieved till now is to make the application as full screen and also handled the home and back buttons. However, my problem is, I want to remove the status/notification bar. I don't want the user to access any other settings through it. I have tried out many ways including the usage of different flags available in android WindowManager for having a screen devoid of the notification bar. However, none were helpful for that.
I have read about apps like Surelock which serve this purpose. Therefore, at least I know that there is something which can be done, except rooting, to remove the notification bar.
Can anyone please help me on this?
I know this question was asked about 10 times here but none of them came to a solution. I don't want to use the low light SystemBar Mode I want it completely to fade out. And this is possible! The default launcher that comes with Chinese Rockchip devices does this. (It looks like the systembar just flies away into the middle of the screen). Any (new) ideas?
Since API 17 this is directly possible, just select FullScreen Activity when developing an app with Eclipse.