0 Replies Latest reply on Nov 22, 2011 4:30 PM by Brady K

    Cannot delete photo from android gallery

    Brady K

      Is this possible to do?

       

      Currently I am able to take a photo and save it to the application storage directory and delete it after upload, however, android automatically saves the image to disk when a photo is taken.  If i reference the photo that is automatically saved to disk and then try to delete it after upload it does nothing.  Is this a limitation of the flex sdk?  if not how do i go about deleting it?

       

      Example:

       

      var file:File = new File(imageURL);

      if(file.exists) {

           file.deleteFile();

      }

       

      //if imageURL points to a file outside of the applicationStorageDirectory is does not delete it.