Android: Remove titlebar and make your app completely fullscreen

If you're not entirely fond of the WYSIWIG layout creator and prefer to do things with code, use the following snippet to make the app full screen.

public class SlowPokeActivity extends Activity {
public void onCreate(Bundle savedInstanceState) {

// Make it completely full screen
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
Copyright © Twig's Tech Tips
Theme by BloggerThemes & TopWPThemes Sponsored by iBlogtoBlog