I am trying to disable the status bar and not allowing the user to expand it at all.
I tried a few methods and it is working good but not on resume!
On resume, if I quickly tried to expand it i could do that!
Any help!
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.
What I wish to do is what Surelock does, I can already stop the user from acessing the status bar's menu, my problem is I can only do that for my app.
I need help doing it the way surelock does it, for every app launched within my app I need to collapse the status bar menu.
Use the WindowManager to draw a View over the touch area for the notification bar that consumes all the touch events.
Keep in mind that this breaks expected behaviour on Android, and is an anti practice. If the notification bar is visible, it should be expandable. I doubt too many users will appreciate you doing this.
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.
Im developing an android 3.0 + app.
I want to remove the status bar at the BOTTOM of the screen, the one with the android nav and time in. I've managed to remove the top bar already.
Anyone know how it's done?
Thanks
I want to remove the status bar at the BOTTOM of the screen, the one with the android nav and time in.
This is not supported. The user needs the system bar in order to navigate the device (e.g., press HOME).
Okay, this would be fairly simple in some other environments, but I can't figure out how to do it, or if its even possible in Android.
I have placed an icon on the status bar. I would like to run a method of another class whenever the user selects that icon. I've seen similar functionality used in volume icons that sit on the status bar that allow a user to raise or lower the volume when the icon is clicked. However, these icons are on the right side of the status bar, and from what I've seen, I'm not allowed to put an icon there. I don't know if that kind of functionality is available to left side icons.
So basically, I'm looking for how to run a function when a status bar icon is clicked. I don't want to open an activity, I just want to run a function.
What you're searching is probably related to the Android UI ActionBar pattern.
Regarding that I'd like to consider you to take a look at the Google I/O 2010 Android app. It contains many of these patterns and may help you out.
Summarizing, you have to create your own ActionBar (or Status Bar as you call it). You place your buttons, retrieve them via the findViewById(...) method and associate a click listener.