On Tue, Aug 3, 2010 at 9:52 PM, Mystique <joven.ch...@gmail.com> wrote:
> Thanks Mark, I have your books and use it here and there.

Thanks!

> I didnt use getExternalFilesDir(), I hardcore it directly.

That is not a good idea, though I think you are confusing two methods.
Environment has a getExteranlStorageDirectory() method, which points
to the root of the external storage (e.g., /mnt/sdcard). I was
referring to the getExternalFilesDir() method on Context, new to
Android 2.2:

http://developer.android.com/reference/android/content/Context.html#getExternalFilesDir(java.lang.String)

> You mean a
> bug if I had getExternalFilesDir() in my code and it will delete the
> directory each time I call it?

No, but a bug in getExternalFilesDir() will cause that directory to be
deleted on an upgrade, which I thought was your problem.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

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

Reply via email to