I am trying to develop using camera in my android application.
The problem is that the camera always returns a result code of 0, irrespective of if I press done or c
As per the comments section, the reason that the resultCode was returning 0 (meaning the result was cancelled) is because when taking a picture to save to the SD card, you need to add the WRITE_EXTERNAL_STORAGE permission to your manifest.
resultCode
WRITE_EXTERNAL_STORAGE