Posted By

Kingcron on 07/13/10


Tagged

fullscreen android activity


Versions (?)

Fullscreen Activity


 / Published in: Java
 

  1. @Override
  2. public void onCreate(Bundle savedInstanceState) {
  3. super.onCreate(savedInstanceState);
  4.  
  5. requestWindowFeature(Window.FEATURE_NO_TITLE);
  6. getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
  7. WindowManager.LayoutParams.FLAG_FULLSCREEN);
  8.  
  9. setContentView(R.layout.main);
  10. }

Report this snippet  

You need to login to post a comment.