문제

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);
        }
도움이 되었습니까?

해결책

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  }
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top