public void start ( Fragment fragment ) { Intent i = new Intent ( fragment . getContext ( ) , CalculatorActivity . class ) ; if ( ! TextUtils . isEmpty ( activityTitle ) ) { i . putExtra ( CalculatorActivity . TITLE_ACTIVITY , activityTitle ) ; } if ( ! TextUtils . isEmpty ( value ) ) { i . putExtra ( CalculatorActivity . VALUE , value ) ; } fragment . startActivityForResult ( i , CalculatorActivity . REQUEST_RESULT_SUCCESSFUL ) ; }
Start the activity using the parent fragment