How to remove the battery icon in android status bar?

Jarmie picture Jarmie · Aug 3, 2011 · Viewed 10.2k times · Source

I've removed the status bar which shows network, battery and time information in Android by take off the background image. But the icons are still there. Just wanna know how to remove the battery icon as well.

Not for apps but for framework development. Thanks in advance.

Answer

Maxim picture Maxim · Aug 3, 2011

Have you tried to call

   getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);

in Activity onCreate() ?