-1

I can set the full screen to activity easily but i want to set it for api below 10. how to do it.

          @Override
     protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
            WindowManager.LayoutParams.FLAG_FULLSCREEN);
    setContentView(R.layout.splash);
        }
vik
  • 33
  • 1
  • 8

1 Answers1

0

I can set the full screen to activity easily but i want to set it for api below 10

That works down to API 1. I don't know why you are assuming it won't work on anything below API 10.

Edit:

if (android.os.Build.VERSION.SDK_INT <= 10){ // set your flags  }
Ahmad
  • 69,608
  • 17
  • 111
  • 137