@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow() .setFlags( WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); // Initialize the loader and the configuration mConfig = RecentsConfiguration.reinitialize(this); setContentView(R.layout.activity_main); mRecentsView = (RecentsView) findViewById(R.id.recents_view); mRecentsView.setSystemUiVisibility( View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION); updateRecentsTasks(); }