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
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
2 matches
Mail list logo