[EMAIL PROTECTED] wrote:
> Hi,
> I use the method ctxt.openFileOutput(path_file, Context.MODE_PRIVATE).
> I can't open a file when I add a folder.
> For example, when I do this : ctxt.openFileOutput(dir/file,
> Context.MODE_PRIVATE). It generates an IllegalArgumentException.
> How can I open a file in a specific directory ?

Does the directory exist? If not, you'll probably need to create it. 
getDir() should lazy-create the directory for you.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.4 Published!

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to