The directory exists.
I even do this to be sure : this.getApplicationContext().getDir("dir",
this.getApplicationContext().MODE_PRIVATE);
What is the problem ?

On Nov 20, 2:45 pm, Mark Murphy <[EMAIL PROTECTED]> wrote:
> [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