display.captureScreen() Problem Not Saving to Gallery

Hi guys,

I'm having a problem with capturing the screen on my Android device. Basically when I have my phone capture the screen, it saves the file on the SD Card in the Pictures folder. Does anyone know how to make it save to DCIM/Camera which on Android is called the gallery.

Thanks so much in advanced.

Regards,
Jordan Schuetz
Ninja Pig Studios

In order to save to Android's photo library, you have to have the WRITE_EXTERNAL_STORAGE permission set in your "build.settings" file. Then you call the function as follows with an argument set to "true", indicating that you want to save the screenshot to the photo library...

1
display.captureScreen(true)
views:1467 update:2011/10/17 21:25:02
corona forums © 2003-2011