Please don't hard-code that path and use the appropriate API in Context instead, so that your app continues to work if/when that path changes.
JBQ On Wed, Dec 17, 2008 at 4:23 AM, shuoshuo <wzshuos...@gmail.com> wrote: > > Yes, I see, I create file on /data/data/mypackagename/ could succeed. > Thanks all . > > On 12月17日, 上午12时21分, Jean-Baptiste Queru <j...@google.com> wrote: >> You're trying to write in a location (/data) where your app doesn't >> have write permissions. >> >> JBQ >> >> On Mon, Dec 15, 2008 at 10:04 PM, shuoshuo <wzshuos...@gmail.com> wrote: >> >> > I use new File("/data/mydir/tmp").mkdirs() to create dir mydir and >> > tmp, but it can not be created, does anyone using File.mkdirs() in >> > android. >> >> -- >> Jean-Baptiste M. Queru >> Android Engineer, Google. > > > -- Jean-Baptiste M. "JBQ" Queru Android Engineer, Google. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---