On Thu, Oct 7, 2010 at 11:07 AM, Lidia <lidyp...@yahoo.com> wrote: > Hello to all, > > I am trying to create a file in /data but i think i don't have the > required permission for it: > File file = new File("data", "myFile.tmp"); > and i get java.io.FileNotFoundException: /data/mopayUpdateFile.tmp > > > Is it possible to create a file in "data", or somewhere else inside an > android phone, except sdcard? > Thanks > Lidia
Lidia, You will find that application files live in /data/data however try avoiding hard coded locations like this. Have a look at Context.getCacheDir(), Context.getFilesDir() and Context.getDir(String name, int mode) Daniel > > -- > 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 -- Daniel Drozdzewski -- 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