@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); url = getIntent().getStringExtra("url"); title = url; type = getIntent().getStringExtra("type"); isFromVideoActivity = getIntent().getBooleanExtra(VideoActivity.FROM_VIDEO_ACTIVITY, false); AppUtils.switchLanguage(getApplicationContext()); this.setContentView(R.layout.player_on_line_video); this.initWebView(); this.getWindowManager().getDefaultDisplay().getMetrics(outMetrics); progressView = (ImageView) findViewById(R.id.progress); progressDrawable = AppUtils.getVideoLoadProgress(this); progressView.setImageDrawable(progressDrawable); progressLayout = findViewById(R.id.progress_layout); btnBack = (ImageButton) findViewById(R.id.titlebar_layout); btnBack.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View v) { finish(); } }); if (Build.VERSION.SDK_INT < 19) mHandler.post(runnable); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) getWindow() .getDecorView() .setSystemUiVisibility( View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION); }