Hi,

I'm trying to create a file in my app folder - sometimes it fails -
other times it works fine - this is what I'm doing:

 String path = "/data/data/com.myapp.test/files/database.sqlite"

 OutputStream myOutput = new FileOutputStream(path);

sometimes the last line throws a FileNotFoundException - which I don't
understand - if the file exists, or doesn't exist, this should always
work, shouldn't it? If the file is there, it will just be overwritten,
if not, it will be created?

My app will get stuck on that line, even between restarts of the app -
after restarting several times, it will just start working again. Any
idea why this could be happening? Should I just not copy files to
disk?

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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to