@Override protected void onActivityResult(int requestCode,int resultCode,Intent data){
  if (requestCode == GET_CODE) {
    Editable text=(Editable)mResults.getText();
    if (resultCode == RESULT_CANCELED) {
      text.append("(cancelled)");
    }
 else {
      text.append("(okay ");
      text.append(Integer.toString(resultCode));
      text.append(") ");
      if (data != null) {
        text.append(data.getAction());
      }
    }
    text.append("\n");
  }
}

@ Override protected void onActivityResult ( int requestCode , int resultCode , Intent data ) { if ( requestCode == GET_CODE ) { Editable text = ( Editable ) mResults . getText ( ) ; if ( resultCode == RESULT_CANCELED ) { text . append ( "(cancelled)" ) ; } else { text . append ( "(okay " ) ; text . append ( Integer . toString ( resultCode ) ) ; text . append ( ") " ) ; if ( data != null ) { text . append ( data . getAction ( ) ) ; } } text . append ( "\n" ) ; } }
this method is called when the sending activity has finished , with the result it supplied .
