Re: [android-developers] managedQuery returning deleted files

2012-06-23 Thread Guilherme Utrabo
Dianne, I'm changing the application to save the files at the right place. I really appreciate the tip. Thank you. Guilherme On 23 June 2012 19:48, Dianne Hackborn wrote: > If these are your own files, please put them in your app-specific > directory: > > > http://developer.android.com/referen

Re: [android-developers] managedQuery returning deleted files

2012-06-23 Thread Dianne Hackborn
If these are your own files, please put them in your app-specific directory: http://developer.android.com/reference/android/content/Context.html#getExternalFilesDir(java.lang.String) The public Pictures etc directories are where the user manages their files. Applications should not be spewing s

Re: [android-developers] managedQuery returning deleted files

2012-06-23 Thread Guilherme Utrabo
Dianne, Thanks for the information. I thought that was the correct place to put the files because they are all images. Where would be the best place to put them? Ps.: the complete path i'm using is: Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES) + "AppRootDirector

Re: [android-developers] managedQuery returning deleted files

2012-06-23 Thread Dianne Hackborn
Fwiw, this is not "your application dir". Pictures on external storage is for shared pictures. You shouldn't be putting your own stuff there. On Thu, Jun 21, 2012 at 8:54 PM, Guilherme Utrabo wrote: > I need to delete some images from my application dir (inside > Pictures/Application). > Thoug

[android-developers] managedQuery returning deleted files

2012-06-21 Thread Guilherme Utrabo
I need to delete some images from my application dir (inside Pictures/Application). Though the image gets removed, when I call for the managedQuery() to fill again the grid, the image that I just removed is retrieved. I'm trying to force a scan on the application directory, but it's not working. So