add the RESULT_CANCELED return code for third-party app