Thanks, the MediaScannerConnection is the solution

On Tuesday, 29 May 2012 11:16:46 UTC+1, Mark Murphy (a Commons Guy) wrote:
>
> On Tue, May 29, 2012 at 4:57 AM, Markwrote: 
> > I am using Android 4.03 on a Samsung Galaxy Nexus. The logs are showing 
> that 
> > the file has been written to the phone memory, however when I check in 
> > windows explorer or using the phones gallery I cannot see the image that 
> I 
> > have just taken a photo of. 
>
> It's there but isn't indexed: 
>
> http://commonsware.com/blog/2011/08/31/mtp-external-storage.html 
>
> Also, never hardwire /sdcard. Always use 
> Environment.getExternalStorageDirectory() (or, for photos, better yet, 
> Environment.getExternalPublicFilesDirectory()). 
>
> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> Android Training in NYC: http://marakana.com/training/android/ 
>

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

Reply via email to