Fullscreen Activity


/ Published in: Java
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.