@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.recents);
  mRecentsView=(Overview)findViewById(R.id.recents_view);
  mRecentsView.setCallbacks(this);
  mRecentsView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);
  IntentFilter filter=new IntentFilter();
  filter.addAction(Intent.ACTION_SCREEN_OFF);
  filter.addAction(SearchManager.INTENT_GLOBAL_SEARCH_ACTIVITY_CHANGED);
  try {
    Utilities.setShadowProperty("ambientRatio",String.valueOf(1.5f));
  }
 catch (  IllegalAccessException e) {
    e.printStackTrace();
  }
catch (  InvocationTargetException e) {
    e.printStackTrace();
  }
}

@ Override public void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R . layout . recents ) ; mRecentsView = ( Overview ) findViewById ( R . id . recents_view ) ; mRecentsView . setCallbacks ( this ) ; mRecentsView . setSystemUiVisibility ( View . SYSTEM_UI_FLAG_LAYOUT_STABLE | View . SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View . SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION ) ; IntentFilter filter = new IntentFilter ( ) ; filter . addAction ( Intent . ACTION_SCREEN_OFF ) ; filter . addAction ( SearchManager . INTENT_GLOBAL_SEARCH_ACTIVITY_CHANGED ) ; try { Utilities . setShadowProperty ( "ambientRatio" , String . valueOf ( 1.5f ) ) ; } catch ( IllegalAccessException e ) { e . printStackTrace ( ) ; } catch ( InvocationTargetException e ) { e . printStackTrace ( ) ; } }
called with the activity is first created .
