Re: [android-developers] Context() getDir() without creation

2012-10-19 Thread bob
new File(context.getFilesDir(),"Test").exists() On Friday, October 19, 2012 11:05:17 AM UTC-5, Paolo Mancini wrote: > > For instance: > > I create a new Test dir with: > > context.getDir("Test",Context.MODE_PRIVATE); > > If after in another part of code I want to check if Test exist without > cr

Re: [android-developers] Context() getDir() without creation

2012-10-19 Thread Paolo Mancini
For instance: I create a new Test dir with: context.getDir("Test",Context.MODE_PRIVATE); If after in another part of code I want to check if Test exist without create it, which is the correct procedure?! thanks Il giorno venerdì 19 ottobre 2012 18:00:40 UTC+2, TreKing ha scritto: > > On Fri,

Re: [android-developers] Context() getDir() without creation

2012-10-19 Thread TreKing
On Fri, Oct 19, 2012 at 3:47 PM, Paolo Mancini wrote: > How can I obtain this? > http://developer.android.com/reference/android/content/Context.html#getFilesDir%28%29 And standard Java IO. - TreKing

[android-developers] Context() getDir() without creation

2012-10-19 Thread Paolo Mancini
Hi, I need to create some directory inside the application to maintain some internal data. To obtain this, I use context.getDir() and It works fine. Sometimes I need to know if some dir exists without create it..and to do it I can't use the context.getDir() cause this function create the director