public void start ( Intent intent ) { intent = setupIntent ( intent ) ; if ( application != null ) { // Extra flag is required when starting from application: intent . addFlags ( Intent . FLAG_ACTIVITY_NEW_TASK ) ; application . startActivity ( intent ) ; return ; // No transitions, so just return } if ( activity != null ) { if ( requestCode == NO_RESULT_CODE ) { activity . startActivity ( intent ) ; } else { activity . startActivityForResult ( intent , requestCode ) ; } } else if ( fragment != null ) { if ( requestCode == NO_RESULT_CODE ) { fragment . startActivity ( intent ) ; } else { fragment . startActivityForResult ( intent , requestCode ) ; } } else if ( fragmentSupport != null ) { if ( requestCode == NO_RESULT_CODE ) { fragmentSupport . startActivity ( intent ) ; } else { fragmentSupport . startActivityForResult ( intent , requestCode ) ; } } setTransition ( false ) ; }
Starts activity by intent .