I've been able to successfully save a snapshot as a JPEG that I take from the camera to my emulator in the "data/data/com.mypackage/files/" folder by doing the following:
However, when I plug my actual Droid device via USB into my computer and run the application, the file supposedly is written to disk however I can't find it anywhere. I'm using ASTRO file browser app to search the entire device but I can't find it anywhere. I have set the appropriate permissions in my AndroidManifest file by way of:
so I'm not really sure what is going on. I tried writing to the SDCard also by changing the filename above to "/sdcard/camera_image.jpg" however I get an exception that says "java.lang.IllegalArgumentException: File sdcard/traffic_life.jpg contains a path separator" both when I try to run on the emulator AND my actual Droid device. Does anyone know what is going on? Ideally I'd just like to write directly to the Sdcard with a folder of my app. I'm not sure how to do this. I've searched everywhere but have found no real solutions. Any help would be greatly appreciated.