Question

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);
        }
Était-ce utile?

La solution

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  }
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top