Can't same bitmap to cameraRoll in Android 4
I am using the following code to allow users to save drawings to the mobile device's cameraRoll:
| var cameraRoll:CameraRoll = new CameraRoll(); | |
| var bitmapData:BitmapData = new BitmapData(stage.stageWidth,stage.stageHeight); | |
| bitmapData.draw(MovieClip(root).stage); | |
| cameraRoll.addBitmapData(bitmapData); |
The code works as expected on tested devices including iOS 5 and 6 with an iPhone 4 and iPad 3, and various flavors of Android 2.x and 3. It does not, however, work on Android 4.x (tested with 4.0, 4.1 and 4.2 on a Galaxy Nexus). The results are the same compiled using Adobe AIR 3.2 and 3.4. Is there some magic code I should be using to save images to Android 4?
My app is being compiled on Windows 7 using Adobe Flash Professional CS6 (12.0.2.529).
