Anyone help me out here, i'm trying to find a way to remove the top status bar to allow for full screen applications (the one with the Battery status icon, along some other status icons).
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
// *******************************************
// fullscreen mode
// *******************************************
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.NO_STATUS_BAR_FLAG,
WindowManager.LayoutParams.NO_STATUS_BAR_FLAG);
// *******************************************
setContentView(R.layout.main);
}
__________________
Join the Talk Android T-Mobile UK Group - Dedicated discussion area for UK T-Mobile Android owners.
When I try to do it anywhere other than in onCreate, Android slaps me across the face. Is there any way that will enable me to show/hide the status bar on demand, i.e. in response to certain events?