Tuesday, February 15, 2011

[android-developers] Camera preview Api

Hi,
I am trying to save images in sd card which is taken from camera in
emulator, the following is the code
to save images in sd card

path = String.format("/sdcard/%d.jpg", System.currentTimeMillis());
outStream = new FileOutputStream(String.format("/sdcard/%d.jpg",
System.currentTimeMillis()));
Log.e("TAG","b4 writing ");
outStream.write(data);

Log.e("TAG","after writing ");
outStream.close();

But I get error that no file or directory . Can anyone tell me where i
did mistake

Thanks ,

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment