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 <[email protected]> wrote: > 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 stuff in there unless these are > things they want the user to see such as when transferring their pictures > to/from the desktop. > > As the doc at > http://developer.android.com/reference/android/os/Environment.html#getExternalStoragePublicDirectory(java.lang.String) > says: > > "This is where the user will typically place and manage their own files, > so you should be careful about what you put here to ensure you don't erase > their files or get in the way of their own organization." > > Also keep in mind that anything you put in external storage is going to be > readable by all other applications, so you should never put anything with > sensitive information there. > > On Sat, Jun 23, 2012 at 3:41 PM, Guilherme Utrabo <[email protected]>wrote: > >> 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) >> + "AppRootDirectory/" >> >> Thank you, >> Guilherme >> >> On 23 June 2012 19:29, Dianne Hackborn <[email protected]> wrote: >> >>> 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 <[email protected]>wrote: >>> >>>> 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. Some code below: >>>> >>>> deleting files: >>>> http://pastebin.com/tQe8s7mm >>>> >>>> sanning directory >>>> http://pastebin.com/ixuz8xsC >>>> >>>> Do you guys have any ideas of what may be causing this behavior? >>>> Thanks in advance, >>>> Guilherme >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Android Developers" group. >>>> To post to this group, send email to >>>> [email protected] >>>> To unsubscribe from this group, send email to >>>> [email protected] >>>> For more options, visit this group at >>>> http://groups.google.com/group/android-developers?hl=en >>>> >>> >>> >>> >>> -- >>> Dianne Hackborn >>> Android framework engineer >>> [email protected] >>> >>> Note: please don't send private questions to me, as I don't have time to >>> provide private support, and so won't reply to such e-mails. All such >>> questions should be posted on public forums, where I and others can see and >>> answer them. >>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Android Developers" group. >>> To post to this group, send email to [email protected] >>> To unsubscribe from this group, send email to >>> [email protected] >>> For more options, visit this group at >>> http://groups.google.com/group/android-developers?hl=en >>> >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en >> > > > > -- > Dianne Hackborn > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. All such > questions should be posted on public forums, where I and others can see and > answer them. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

