i want to hide everything in Navigation bar except back button (rooted tablet) , i used to hide the Navigation bar completely (to restrict users access other applications and device settings) but the customers didn't like it because when users open PDF files or videos they forced to use physical back button to back to my application, so the only way is to customize the Navigation bar to show back button only , any suggestions?
EDIT : its possible to create my own Navigation bar like full!screen?
Sounds like you want to do a kiosk tablet. A lightly customized rom with a navigation bar having only the back button might be what you want to do..
Related
Is it possible to hide navigation bar on e.g. tablets in activity, so it does not appear when user is clicking on the screen?
I want it to appear only when user is swiping from bottom to middle of the screen, just like in e.g. Real Racing 3.
When I use:
myView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
Unfortunetly navigation bar is hidden, but when user is clicking, it appears again. I want it to work only with this swipe gesture. How it can be achieved?
This is a platform behavior. Apps do not have the sort of control of the navigation bar that you are looking for, and for good reason. All it takes is one app not implementing a way to show the nav bar and the user is stuck. You will have to design your app with the platform's behavior in mind.
I'm developing an restaurant menu application that I want to be always on (the user shouldn't be able to go outside the application).
So far am able to override the back and home buttons, but I would like to get rid of the notification bar. Is there anyway to do such thing?
I've tried to set the app theme to fullscreen no title bar but that didn't do the trick. (For the home button i used the custom app in the application.xml.)
Here is a picture of the app for better understanding
You cannot remove bottom navigation bar (notification bar is that one on the top of the screen) on non-rooted device.
If you want to make kiosk mode, then you got two choices - turn your app into launcher or root your device and use tools like: http://ppareit.github.com/HideBar/ (there's open source solution as well but I do not have URL handy)
Put this onCreate()
this.requestWindowFeature(Window.FEATURE_NO_TITLE); // Removing the title
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
//notification bar
But you have to put it before the call to setContentView(R.id.x), otherwise it does not work
I am writing an App using MonoDroid and for some reason I cannot pull down the notification bar from the top of the screen. I am thinking this has to do with my layout, but I am not sure. I also notice that when my App is running I do not have the bar at the top showing the battery, time, signal strength, etc.
So, my question is, what do I need to do to allow the user to pull the notification bar down? And how to show the info at the top of the screen?
I suspect you have done something to make your app appear in "Full Screen" mode (this will turn the home, menu and back buttons on the bottom of the screen to dots, and hide the navigation bar.
I believe this is called "lights out mode". Here is one SO question asking how to turn it on (maybe it will help you turn it off as well): Hide ICS back home task switcher buttons
Maybe your theme is
android:theme="#android:style/Theme.NoTitleBar.Fullscreen" ?
It hides the notification bar. Change to a non-fullscreen theme to make the the notification bar visible.
With some divice android has got 3 button: Home,Menu and Back at the bottom.
But some divice android phone hasn't got 3 button: Home,Menu and Back.
How show 3 button Home,Menu and Back at bottom of screen as Action Bar?
AS:
This is not an action bar. This is the navigation bar, available on some phones. Specifically, it will be on phones that are running Android 4.0 or higher and do not have off-screen affordances for these keys.
How show 3 button Home,Menu and Back at bottom of screen
This is handled at the firmware level. The device manufacturer will set up the firmware to display the navigation bar where needed. You cannot add a navigation bar for devices that do not need one via the Android SDK.
I'm On Honeycomb (3.1) and my first problem is that I don't know what is the name of the bar at the bottom of the OS (appears in every application). I've seen some apps add options to this bottom bar (it has by default the back button the home button and the show active programs button, besides the watch, battery indicator and signal connection strength). When a certain program uses options it sometimes adds them to this bottom bar (it is usually seen as a grid-like icon next to the show active programs buttons, which you can click and a menu pops up.
I've described it as best as I can, but My question is simple: how can I create a menu like this on in my app?
Thanks for any help!
EDIT:
Ok, I've just read it's a compatibility feature. And it's not supposed to be there in an Android App.
I feel stupid...
I'm On Honeycomb (3.1) and my first problem is that I don't know what is the name of the bar at the bottom of the OS (appears in every application).
That is the "system bar".
I've seen some apps add options to this bottom bar
This happens automatically for applications that set up an options menu using onCreateOptionsMenu(). However, once the application switches to the Honeycomb look-and-feel (e.g., via android:targetSdkVersion="11"), the options menu moves to the action bar.
how can I create a menu like this on in my app?
Long-term, you do not want to do this, because it means that you will not have the action bar and will not look like you belong on Honeycomb, Ice Cream Sandwich, etc.
Short-term, simply do not have android:targetSdkVersion="11", and implement an options menu as normal.