Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Show Toast Message after crop #277

Open
WestBonner opened this issue Feb 2, 2018 · 0 comments
Open

Show Toast Message after crop #277

WestBonner opened this issue Feb 2, 2018 · 0 comments

Comments

@WestBonner
Copy link

How to show success crop message after crop? I'm using this code but I did not succeed:

  private void handleCrop(int resultCode, Intent result) {
        if (resultCode == RESULT_OK) {
            Toast.makeText(this, "Success", Toast.LENGTH_SHORT).show();
          //  resultView.setImageURI(Crop.getOutput(result));
        } else if (resultCode == Crop.RESULT_ERROR) {
            Toast.makeText(this, Crop.getError(result).getMessage(), Toast.LENGTH_SHORT).show();
        }
    }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant