Skip to content

Commit

Permalink
Handle the activity result
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmetcalfe committed Mar 13, 2014
1 parent 205897d commit d53461c
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@



import android.app.Activity;
import android.app.Fragment;
import android.content.Intent;
import android.net.Uri;
Expand All @@ -23,7 +24,6 @@
import java.io.File;
import java.io.IOException;


/**
* A simple {@link android.support.v4.app.Fragment} subclass.
*
Expand Down Expand Up @@ -99,4 +99,14 @@ public void takePhoto() {
Log.e(TAG, "Error opening file", ex);
}
}

@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);

// check that its the right result and that it was successful
if (requestCode == CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE && resultCode == Activity.RESULT_OK) {

}
}
}

0 comments on commit d53461c

Please sign in to comment.