cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon MacDonald <>
Subject Re: [Android] MediaScanner branch
Date Wed, 20 Jun 2012 18:49:00 GMT
Hey Fil,

Try doing this:

        *int* result = *this*.cordova

            MediaStore.Images.Media.*DATA* + " = ?",

            *new* String[] { filePath });

that should delete the image at filePath from the content store. I don't
think it deletes the file but you should be able to see that after a quick

Simon Mac Donald

On Wed, Jun 20, 2012 at 1:32 PM, Filip Maj <> wrote:

> Just an FYI for the Android folks on the list.
> hortlog;h=refs/heads/mediascanner
> I pushed this branch up to the repo as I am working on the
> "saveToPhotoAlbum" option for the camera API. Allows the user to specify
> if pictures taken should show up in the Gallery application on the phone.
> Some phones (Galaxy Nexus, my theory is in general ICS phones) don't show
> taken pictures in the Gallery immediately after taking them, if the
> picture is saved to external memory. If you reboot the device or
> mount/unmount the SD card, it shows up.
> The above branch manually triggers Android's MediaScanner service so that
> it shows up in the Gallery immediately.
> Next I will work on _hiding_ taken pictures from the Gallery.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message