Reputation: 10971
I'm following this tutorial http://developer.android.com/training/camera/photobasics.html to capture photos and save them to the external storage.
Images are captured and saved successfully but the image size file is zero bytes.
The strange thing is that I can still open the file with the stock gallery app, but when copying the image file to the PC, I can't open it with any image viewer.
What can be wrong here? I'm testing on a Samsung Galaxy Nexus.
Upvotes: 1
Views: 2910
Reputation: 10971
OK, found what was wrong. I left the phone for a couple of hours and returned to check the files and surprisingly I found them with their proper files.
Not sure what's the reason for this, I tested the same code on a Samsung S3 and it worked fine, maybe this happens on slow old phones like the Galaxy Nexus.
Upvotes: 0
Reputation: 1426
Change the directory to save the captured images and copy the saved image and paste it in another directory in mobile itself.
Upvotes: 2