How to create a Notification \ status bar icon on the right side?

Prince Champappilly picture Prince Champappilly · Aug 21, 2013 · Viewed 14.7k times · Source

Ok I saw a lot of people just dismiss this question by saying

"it's reserved for OS component "

"it requires access to source"

Well I have access to the source and I can set any app or widget I want as a system app. So now how would I go about making my widget show its notification on the right side?

EDIT: ok ppl are going in the wrong direction so ill add come context here . . . look at ur phone . . . u see Wi-Fi signal and phone signal on the right side of the phone all the time right. I want my signal to be shown there aswell . . . along with the system signals . . I have a new hardware chip in the tablet my company is making and I have to display its signal strength constantly just like the phone signal. It is going to be integrated into the Android source of the tablet.

Answer

Robin picture Robin · Dec 10, 2013

You might need to refer to the code of Android source code of phone status bar, at https://android.googlesource.com/platform/frameworks/base/+/android-4.3_r3.1/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

And take a look at the methods like

addIcon
updateIcon
removeIcon

It is not easy task since you have to add lots of stuff by yourself.