Wednesday, 3 April 2013

Hiding Status Bar in Android

Demo:


Activity:



package com.venky.statusbar;

import android.app.Activity;
import android.os.Bundle;
import android.view.WindowManager;

public class HidingStatusBarActivity extends Activity {
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);

            getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                        WindowManager.LayoutParams.FLAG_FULLSCREEN);

            setContentView(R.layout.main);
      }
}


Download this Project Click Here

No comments:

Post a Comment