[android-developers] Re: Update delete a directory and how to prevent this from happening?

2010-08-03 Thread Mystique
Thanks Mark, I have your books and use it here and there. I didnt use getExternalFilesDir(), I hardcore it directly. You mean a bug if I had getExternalFilesDir() in my code and it will delete the directory each time I call it? On Aug 4, 1:23 am, Mark Murphy mmur...@commonsware.com wrote: On

Re: [android-developers] Re: Update delete a directory and how to prevent this from happening?

2010-08-03 Thread Mark Murphy
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

[android-developers] Re: Update delete a directory and how to prevent this from happening?

2010-08-03 Thread Mystique
I did use getExteranlStorageDirectory() method but i realize Android always mount it to /sdcard I am starting to think why not hardcode. I guess Google team will not change it (maybe the source /mnt/sdacrd but not the mount path), then again I guess it is a good practise and I will change it. :)

[android-developers] Re: Update delete a directory and how to prevent this from happening?

2010-08-03 Thread Mystique
Yep, sounds logical and that is what I understood too. I have the directory in the SD and I believe it should not be deleted. On Aug 4, 12:37 am, Mark Murphy mmur...@commonsware.com wrote: On Tue, Aug 3, 2010 at 12:35 PM, Mystique joven.ch...@gmail.com wrote: I have an app that create a

Re: [android-developers] Re: Update delete a directory and how to prevent this from happening?

2010-08-03 Thread Mark Murphy
On Tue, Aug 3, 2010 at 12:43 PM, Mystique joven.ch...@gmail.com wrote: Yep, sounds logical and that is what I understood too. I have the directory in the SD and I believe it should not be deleted. Oh, wait. If you're using the new getExternalFilesDir(), what you are experiencing is a bug. I'd