Based on the Samsung Galaxy S8 auto-hide navigation keys, I want to make my own auto hide volume bar. It will be an app for playing TV series, made just for one particular device specific for not having any physical buttons.
Volume bar should be opened on bottom screen swipe and auto-hide in 2 sec if not used.
Something like this GIF.
How can I implement something like that in an app, not in the operating system itself?
Related
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.
I've built a simple video player app for Android 4.2. I'd like to be able to programmatically show/hide the system bar while this app is playing video. I've read many threads here that indicate a device must be rooted in order to hide the system bar.
Then, I noticed that the Netflix app on my un-rooted Android tablet achieves the effect I'm after:
When the Netflix app is first launched, thee system bar is shown.
5 seconds after a video starts playing, the system bar icons slide down and are hidden.
Tapping the screen causes the system bar icons to slide back into view.
5 seconds later, the system bar icons slide out of view again.
How might I achieve this effect?
You're looking for setSystemUiVisibility() (See Documentation).
Specifically the SYSTEM_UI_* flags. In KitKat, they've added additional flags for immersive mode.
I have created an android program.It has a menu button and I published it in Google play.But in my phone Samsung Galaxy not showing that menu .I tried it in LG Nexus 4 it works fine .Then I tried in different tablets and works fine .Micro max ninja not showing menu.
Also I want to know about menus of different style .How to enable horizontal scrolling?
What kind of Menu button? The one that is displayed on the Action bar or digital buttons below? Because it might not be displayed because the phone might have a dedicated, physical menu button.
As from the Android docs:
The action overflow in the action bar provides access to your app's less frequently used actions. The overflow icon only appears on phones that have no menu hardware keys. Phones with menu keys display the action overflow when the user presses the key.
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.
I'm trying to make my app to Fullscreen (with no any bar) how I can coding to set it. (Android version 4.0.3)
Thx very Much
You can't hide that bar. On Honeycomb(3.0) there was a bug that would allow it to be hidden(on a rooted device), but it was fixed in ICS(4.0). (Note: see this answer for more techniques that worked on 3.0)As of now there is no way to do it on 4.0. Unfortunately, because devices no longer have physical buttons the navigation buttons (home and back) have to be put onto the screen. Because that bar contains the navigation buttons if you were to hide it, it would be possible to "lock" the user out of the device by not allowing them to leave your application(at least until they rebooted into safe mode).
So if you want to do that you'll have to make your own custom version of the OS to allow for it.