Absoluetely true! I created the specified directory with mkdir() then the file with createnewfile() and the export is made. Thank you very much for your help.
2011/4/12 TreKing <[email protected]> > > > On Tue, Apr 12, 2011 at 7:34 AM, Alaeddine Ghribi < > [email protected]> wrote: > >> Here is the code that creates he file in SDCARD, in fact it's a copyfile >> function: >> >> InputStream in = new FileInputStream(f2); >> OutputStream out = new FileOutputStream(file); >> > > I don't know what either f2 or file is. > You should probably check that "createNewFile()" returns true, which will > fail if the sub-directories required for a file do not exist. Again, this is > all standard Java I/O stuff that you really, really, REALLY need to review > and understand. > > > ------------------------------------------------------------------------------------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices > > -- 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

