Android Forums

Go Back   Android Forums > Google Android > Android Development
Android News Register Blogs Forum Rules FAQ Search Today's Posts Mark Forums Read

Android Development Google Android SDK general discussion forum for the Android software development kit. Android programming support, questions, ideas and problems discussion area.


Android Forums - Talk Android Community

Welcome to the Talk Android Forums, With discussions covering Android software, hardware and SDK development Talk Android provides a strong resource for users all around the world to take part in Google Android related discussion.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features.
Registration is fast, simple and absolutely free.




Reply
 
Thread Tools Display Modes
Old 03-11-2008, 03:20 PM   #1
 
BedHead's Avatar
Member
 
Join Date: Mar 2008
Posts: 56
Howto Hide the Top Status Bar?

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).

Anyone managed to find a way around this yet?
BedHead is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Reply With Quote
Old 03-11-2008, 03:37 PM   #2
 
Andor's Avatar
paranoid android
 
Join Date: Feb 2008
Posts: 336
Blog Entries: 1

This code should hide the main status bar:
Code:
/** 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); 
  }
Andor is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Reply With Quote
Old 05-05-2008, 01:18 AM   #3
Junior Member
 
Join Date: May 2008
Posts: 1
is there a way to do it other than in onCreate?

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?

thanks
luigimvm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Reply With Quote
Reply


Thread Tools
Display Modes




All times are GMT. The time now is 12:25 AM.


Copyright (c) 2008 TalkAndroid.com. All rights reserved.
SEO by vBSEO 3.2.0 RC5 ©2008, Crawlability, Inc.