yer welcome. ideally the runtime would throw a permissions exception so you'd get an idea of what went wrong. file not found can and does mean anything :-)
>Ah thanks Jason, that seems to have fixed it, > >Thanks > >On Dec 14, 3:33 pm, Jason Proctor <[email protected]> >wrote: >> does your manifest declare WRITE_EXTERNAL_STORAGE permission? >> >> also please use Environment.getExternalStorageDirectory() instead of >> /sdcard directly. on future platforms the location might change. >> >> >> >> >> >> >Hi, >> >> >I'm trying to create a file on the sd card. Using this: >> >> > OutputStream out = new FileOutputStream("/sdcard/tmp.jpg"); >> >> >but that throws a FileNotFoundException. Isn't OutputStream supposed >> >to create the file, if not found on disk? I'm looking to write image >> >data there. >> >> >This is on a 1.6 emulator. I have an SD card installed, I'm looking at >> >the sdcard folder through DDMS, so it's there. >> >> >Thanks >> >> >-- >> >You received this message because you are subscribed to the Google >> >Groups "Android Developers" group. >> >To post to this group, send email to [email protected] >> >To unsubscribe from this group, send email to >> >[email protected] >> >For more options, visit this group at >> >http://groups.google.com/group/android-developers?hl=en >> >> -- >> jason.vp.engineering.particle > >-- >You received this message because you are subscribed to the Google >Groups "Android Developers" group. >To post to this group, send email to [email protected] >To unsubscribe from this group, send email to >[email protected] >For more options, visit this group at >http://groups.google.com/group/android-developers?hl=en -- jason.vp.engineering.particle -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

