public void onImageActivityResult()

in src/android/Capture.java [441:458]


    public void onImageActivityResult(Request req) {
        // create a file object from the image absolute path
        JSONObject mediaFile = createMediaFileWithAbsolutePath(this.imageAbsolutePath);
        if (mediaFile == null) {
            pendingRequests.resolveWithFailure(req, createErrorObject(CAPTURE_INTERNAL_ERR, "Error: no mediaFile created from " + this.imageAbsolutePath));
            return;
        }

        req.results.put(mediaFile);

        if (req.results.length() >= req.limit) {
            // Send Uri back to JavaScript for viewing image
            pendingRequests.resolveWithSuccess(req);
        } else {
            // still need to capture more images
            captureImage(req);
        }
    }