Android Forums

Go Back   These FORUMS ARE DISABLED!! OUR NEW FORUMS ARE AT http://androidforum.com/ > Android Coders > Android Development, Answers, Tutorials, and Code Snippets
Connect with Facebook

Click Here To Register!
 
 
LinkBack Thread Tools Display Modes
Old 03-11-2008, 08:20 AM   #1
Member
 
BedHead's Avatar
 
Join Date: Mar 2008
Posts: 57
Friends: 0
View BedHead's Profile   View BedHead's Photo Album   View BedHead's Blog   View Social Groups
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
Old 03-11-2008, 08:37 AM   #2
paranoid android
 
Andor's Avatar
 
Join Date: Feb 2008
Location: UK
Posts: 702
Friends: 9
Blog Entries: 1
View Andor's Profile   View Andor's Photo Album   View Andor's Blog   View Social Groups
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); 
  }
__________________
Join the Talk Android T-Mobile UK Group - Dedicated discussion area for UK T-Mobile Android owners.
Andor is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Old 05-04-2008, 06:18 PM   #3
Junior Member
 
Join Date: May 2008
Posts: 1
Friends: 0
View luigimvm's Profile   View luigimvm's Photo Album   View luigimvm's Blog   View Social Groups
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
Old 11-30-2008, 11:33 PM   #4
Junior Member
 
Join Date: Nov 2008
Posts: 1
Friends: 0
View lvjiaxi's Profile   View lvjiaxi's Photo Album   View lvjiaxi's Blog   View Social Groups
Using this in SDK 1.0
Code:
Quote:
getWindow().setFlags(WindowManager.LayoutParams.FL AG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
lvjiaxi is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
 

Thread Tools
Display Modes




Unlocked G1 Phones | Buy T-Mobile G1 | Google Phone

All times are GMT -6. The time now is 04:18 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Copyright (c) 2012 TalkAndroid.com. All rights reserved.