public void onCreate ( Activity activity , Bundle savedInstanceState ) { this . activity = activity ; container = ( ScreenContainer ) activity . findViewById ( R . id . magellan_container ) ; checkState ( container != null , "There must be a ScreenContainer whose id is R.id.magellan_container in the view hierarchy" ) ; for ( Screen screen : backStack ) { screen . restore ( savedInstanceState ) ; screen . onRestore ( savedInstanceState ) ; } showCurrentScreen ( FORWARD ) ; }
Initializes the Navigator with Activity instance and Bundle for saved instance state .