MediaScannerConnection for AS3/AIR?

import android.media.MediaScannerConnection; import android.media.MediaScannerConnection.MediaScannerConnectionClient;

These are classes available in Java to refresh the detected images on an SD card on an Android device.

If you save an image to the SD card, it's there, but not visible unless you mount the device, unmount the device. These Java classes fix that problem.

But I'm building an App using AS3 and AIR, does anyone know the equivalent classes for AIR, AS3?

Answers


You can use Adobe Air's File class to poke around the device (also cf., Working with Files). Once you figure out what code gets you to the USB device, you can load it as a ByteArray and convert that to an image.

If you are looking for image import/conversion code, just search for what you need; there are numerous posts out there, and the answers are fairly standardized.


Need Your Help

How do I query to retrieve custom post title by tag name in wordpress

wordpress

I want to retrieve custom post title by tag name.I have tag name and i want to retrieve title.How can i do this.

Is there a way to break out of the default_scope when using has_many?

ruby-on-rails tree scope has-many default-scope

I have a tree-like model where in all situations but one, I want to scope the results to only return the roots.