Hi Mark, Thanks for the quick reply and the pointer.
I replaced new FileWriter("/data/"+fileName) with openFileOutput(fileName, 0) it worked as openFileOutput writes into files (or creates them if they do not exist) in an application's private storage space. The documentation for getFilesDir states: "Returns the absolute path to the directory on the filesystem where files created with openFileOutput(String, int) are stored. " Alex Donnini On Dec 3, 2:55 pm, Mark Murphy <[EMAIL PROTECTED]> wrote: > alexdonnini wrote: > > Hello, > > > Using a call such as > > > new FileWriter("/data/"+fileName) > > > causes an IO exception. > > Because that's not a good spot for you to be putting your own data. > > Use Context#getFilesDir() to find the base directory for data storage > for your application, or write them to a mounted /sdcard. > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > _The Busy Coder's Guide to Android Development_ Version 1.9 Published! --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---