I'm working on an Android project which allow the user to take a picture using the camera.
My method looks like this :
private void takePicture(){
Intent camera = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(camera, 1337);
}
And in my onActivityResult I take the picture and store it in my SdCard. I trying to modify my takePicture() function to return the path of the picture (String instead void).
I already know that getPath() from java.io.File allow me to do that.
So my question is : how can I modify my function to return the path of the picture?