I want to write myself an Application to hide the time in the notificationbar and i´m lookin out for some way to do so!
I want it to look like this for example, just not visible:
Do you have any hints how i can accomplish the time in the notificationbar gone?
Thanks in advance, i know this isnt a very specific question but i´dont look for a specific answer either!
EDIT: Currently i´m using the app super status bar to hide the time but unfortunally it delivers a lot more than i want. Within the alternative status bar i just set the fontcolor of the time to black. When this app can do it there has to be some kind of way to accomplish the time not visible or gone right!?
You certainly can't accomplish that with a widget, and you can't do that without actually modifying the OS itself, and building a custom ROM. There is no way for you to override the system part of the notification bar as a third-party application.
Related
Currently I want to make an app but I don't know what this is called , I mean the android term for it, it's definately not a spinner, but more into the notifications.
I want to make an app that I can interact with just like the music bar here that can play music, stop next song , etc.
Can someone help me or tell me what that method is and where can I get some tutorials for it?
It doesn't seem to be an ongoing notification. (It's not being under the Ongoing tag being the clue, otherwise I could be sure that this was the case)
http://developer.android.com/reference/android/app/Notification.Builder.html#setOngoing%28boolean%29
It is probably a custom remote view
http://developer.android.com/reference/android/widget/RemoteViews.html
A quick google search will give you examples.
I'm devolopping a tablet app. I want it to work full screen. After days of investigeting on google, I achived it using:
.getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
.getWindow().getDecorView().setSystemUiVisibility(Window.FEATURE_ACTION_BAR_OVERLAY);
.getWindow().getDecorView().setSystemUiVisibility(Window.FEATURE_ACTION_MODE_OVERLAY);
The Tablet I'm using is 4.1 Android version. That was working perfectly though I had to made some changes like doing my own action bar (because sistem action bar made navigation buttons comes up) and dialogs.
Now the problem is that I've installed my application on 4.2 Android version and it's a disaster. Each time I touch the screen, navigation buttons comes up. It's really annoying. This is driving me mad, I've tried many things but it's still coming up.
Is there a way to solve this problem? I think if I could override the method that makes navigation buttons comes up I could achieve my objective. Anybody know which is this method??
It is not working in 4.0 Android version neither. That doesn't bother me much, but if you know a way to solve it as well, that would help me a lot.
I would appreciate any help. Thanxs a lot.
Each time I touch the screen, navigation buttons comes up.
One of the core Android concepts is that the user is always in control of the UI. If developers were allowed to create fullscreen Apps and override the navigation buttons, it would be trivial for an App (rogue or otherwise) to create a screen which the user could not get out from.
If you really want to remove the system bar, you will system-level access or you need to build your own custom Android.
currently I'm working on an UI Replacement of Android, currently achived by writing a different launcher and different-styled apps. All's good so far, BUT: there is still the notification bar missing, means, I have no idea how to replace the notification bar.
The "new" notification bar shall show only generic informations like the clock and network state, similar to windows phone and ios, without NotificationManager-binding.
How can I achive this? I know that there are several notification bar replacement apps out there, like omega statusbar or statusbar+.
My idea was to make every app of my UI fullscreen and having its own NotificationBar-Instance, fed by a ContentProvider or Service. But if the user decides to use classic android apps, he also will see the generic notification bar, which isn't what I want.
Also it might be an idea to create a window on top the notification bar, but I have no clue either this is "the right way", nor if it is even possible to achive this in this way.
I need to write an app for testing purposes, which shall stay in foreground regardless which other application is currently activated. That means i need to allocate a small area of the screen that shall be usable for my app. Does somebody know a way how to achieve this?
Sounds like you want to to create something like statusbar. I'm not sure if you can do that without using some internal android API(for which you'd need to recompile android and build your own custom ROM).
Now you can look at what android does when it creates status bar here http://www.google.com/codesearch#uX1GffpyOZk/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarService.java check the addStatusBarView method. There some internal stuff there like WindowManagerImpl. You might be able to achieve something like this by using dialog or regular activity and using getWindow() to get its window and setFlags to mess with its flags in order to make them behave more like status bar. I'm not sure if this would give any results..
If you don't have a lot of info to display maybe it would be much easier to use notification in the status bar..
Look at this thread it looks like a similar problem was addressed there.
In my app I want to display different icons for the application. Changes should be according to the scenario. For example, it will mark the number of days remaining for the task completion. On the android menu this icon will display the number of days remaining. If anyone has any idea for this, I would appreciate it. Thanks.
There are actually a number of ways to achieve this. If you notice Google's clock app these days, it does show the current time.
You can refer to this tutorial: https://blog.jakelee.co.uk/programmatically-changing-app-icon/
Or find even more ways here: How to change an application icon programmatically in Android?
As far as i know, you cant. Also refer to this answer:
Android Application Icon Change
I am afraid you can't change your app's icon programmatically. How to change an application icon programmatically in Android?
This can be done easily. Within your activity code, just write:
getActionBar().setIcon(R.drawable.new_icon);