Reputation: 75
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.
Upvotes: 6
Views: 11816
Reputation: 3159
If you are working on Android 2.2, you can remove it by the following step.
service.setIconVisibility(mBatteryIcon , false);
for it.Upvotes: 4
Reputation: 3006
Have you tried to call
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
in Activity onCreate() ?
Upvotes: 6