How to Show Status Bar Icons on the Right like Betternet? - android

Before you flag this as duplicate, I researched this question a long time ago and found this and this, which both suggest that the right side of the notification bar is a system apps ONLY zone.
However, I recently used Betternet and after connecting to the VPN, these two icons appear:
Betternet is not a system app, and my HTC On3 M8 is not rooted. How did they do it?

The left icon is a Notification. These can be displayed by any app.
The right icon is a standard icon, added there by Android, indicating an active VPN connection. These are not put there by apps directly, though certain things that apps implement (e.g., VpnService) might result in an icon being shown there.

Related

Disable Notification Tray appearing android when pulled down

A little background first. I'm developing an application for corporate devices running on the Android platform. It won't be distributed on the Play store and thus, is unavailable to the general public. The devices are owned by the company and its only purpose is to run this application. So accessing the home screen/notifications/application history/ app drawer are unnecessary and in fact we want to focus the user experience directly on this application.
The current problem I'm facing is preventing access to the notification tray. Simply making the application full screen is not a solution. We do actually need to see the status bar. It's the easiest way to provide network,gps and battery status information to the user.
So far my research has only turned up one solution, which is to go full screen (again, not a solution for this problem, I need the status bar to be visible).
Can anyone help me out !!

Remove launcher app icon background

I've been developing an app to android for a while and I've been trying different devices with multiple screens dimensions and different OSes.
I was testing the app within a Wiko Robby and I've noticed that the app icon had a background added that on previous devices weren't present.
The right side icon is owned by the OS, whilst the left one is mine. The background I would like to remove is that subtle rounded corner box background that was added the the background of the icon.
I've been searching and what I want can be achieved by installing 3rd party apps to edit the OS theme, but I don't want to do that, nor asking the users to do so.
Is there anyway I can remove the background?
This is not possible, unfortunately. This feature is entirely managed by the home screen and developers have no control over it.
I don't think that you should worry about it, though. The user is probably used to see this background behind 3rd party app icons and he will probably not even notice it on your app. I would even argue that it can be disturbing for the user if your icon was displayed without this background, as this could led him to believe that your app is a system app.

Force Android to show all copies of identical notification icons

My app can accept multiple client connections and I want it to display a status bar icon for each connection with a little indicator to show activity from this client.
If I have two clients connected, for example, I would like to show two status bar icons that each indicate a client's state.
Right now I'm using standard Notifications for this for which I update the iconLevel as needed.
Everything works great on my Ice Cream Sandwhich phone, but my Lollipop tablet removes all but one of the icons whenever they all show the same state, e.g. when both clients are idle. If one client is idle and the other one has activity, i.e. the two icons are not the same, then both icons are shown. Also, if I open the tray, both notifications always show up, whether or not they show the same icon.
Is there a way to prevent this duplicate-icon-collapse?
I guess I could use a different set of images that all look (almost?) the same for each icon, but I'm hoping for a more elegant solution...
Turns out the hack-job solution I wanted to avoid isn't that bad after all:
I don't need to ship different versions of my images, or even multiple identical copies of them. It's sufficient to have multiple copies of the xml-file that defines the LevelListDrawable and then use a different one for each icon. It is ok for all LevelListDrawables to reference the same image files.
In other words: Status bar icons only ever get collapsed (on some platforms) if the resource IDs for their icons and their iconLevels are identical.
This is still a pretty ugly solution, so I definitely won't accept this as the final answer. Hopefully there is a cleaner way to do this.

Android disable notification bar [root]

I need to enable this on 4.2.2 android tablet.
I've successfull'y done that using this terminal command:
"settings put global device_provisioned 1"
The problem is, that this command also disables HOME button, so I cannot use it. Seems like system stops sending intents.
I've found ways to disable whole system bar at the top and bottom of the screen, but then I loose my navigation buttons.
I've tried disabling notifications one by one, but I still see searching for GPS and Android active hotspot icons in notification bar.
It seems I've tried everything I could, but am unable to get required functionality.
What else could I try?

Creating fake status bar information

I'm trying to fake some information that are shown on the status bar (I'm doing this for a good reason, for example when a thief steels the phone, he doesn't deserve to know the status of anything: battery, WiFi, 3G, GPS, etc...)
I know that this is possible somehow without creating a ROM, see this app in the Android market: CSB Fake
at 2:26 in the video, he fakes the battery level IN THE STATUS BAR!
I really need to know how is this done.
There are only two ways I can think of
at some desired time, change the icon in the system (using superuser permission)
just send wrong information to the status bar, and it does the rest, for example, send to the status bar that the GPS is not working while in fact it is
Is it possible to do it without rooting? (that app seems to do it on no-rooted devices)
How to do such a thing? is there any references or some sites that most likely has the answer?
That screen shown in app for battery you can make that...by making the app full screen mode and show your custom title bar like with wifi level battery level time icons and also pop up one custom dialog for battery low as same as android pops up.
This must be done at build time. The reason for this is because the base level of android has the statusbar code. YOU MUST recompile the ROM there is NO way around this. These are system level broadcasts that are broadcasted within the phone. You cannot control this, even with root its still impossible.
Once again, to do this properly you MUST have code that will allow you to recompile your source code of your phone. A custom rom would suit this.

Categories

Resources