Saving a screen shot to the camera reel on android
A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Saving a screen shot to the camera reel on android

  1. #1
    Junior Member
    Join Date
    Oct 2008
    Posts
    16

    Saving a screen shot to the camera reel on android

    Hi guys I've created an app for iPhone and iPad and it works great, you can save an image of the screen to your camera reel fine. I've used the same code for the android version and when I tested it on our old HTC Wildfire it also worked fine. However now the app is live on Google Play a few users have left reviews saying the image dosnt save to their photo reel. Does anyone have any ideas why? Does it have something to do with the phones security settings not letting an app access the reel?

    Heres a quick sample of the code:

    import flash.media.CameraRoll;

    var cameraRollcaddy:CameraRoll = new CameraRoll();
    cameraRollcaddy.addEventListener(ErrorEvent.ERROR, onCrError);
    cameraRollcaddy.addEventListener(Event.COMPLETE, onCrComplete);
    var bitmapDatacaddy:BitmapData = new BitmapData(stage.stageWidth, stage.stageHeight = 640);
    bitmapDatacaddy.draw(stage);
    cameraRollcaddy.addBitmapData(bitmapDatacaddy);
    }

    else
    {
    trace("not supported.");
    }

    function onCrError(event:ErrorEvent):void
    {

    }

    function onCrComplete(event:Event):void
    {

    }

    Cheers Steve

  2. #2
    Senior Member
    Join Date
    Nov 2001
    Posts
    1,145
    I think that if you look around at other apps that save pictures, you'll see the same issue. I would try to achieve the same success rate as the other apps and not spend effort trying to solve an issue others can't solve.

    You can send the errors to a database and go through them. The user would be happy to see an acknowledgement of the error and a request to send a report.

  3. #3
    Is the best Alloy Bacon's Avatar
    Join Date
    Apr 2011
    Posts
    395
    It should be security setting issues, to fix this on flash goto publish settings, click air for android wrench settings click permissions and allow write external storage, as some of your users may be having this issue because they are using sd cards and not internal storage. This is very likely the issue because i devices dont use external storage which is why you are successful for those devices, and not some androids.
    https://www.paypal.com/cgi-bin/websc...if%3aNonHosted <--- Please donate if I solved your problem

  4. #4
    Member
    Join Date
    Aug 2012
    Posts
    53
    tank you, tank you, than you

  5. #5
    Is the best Alloy Bacon's Avatar
    Join Date
    Apr 2011
    Posts
    395
    dont thank me, thank my paypal with a dollar lol
    https://www.paypal.com/cgi-bin/websc...if%3aNonHosted <--- Please donate if I solved your problem

  6. #6
    Member
    Join Date
    Aug 2012
    Posts
    53
    hels,

    no no, I thanka for the code gived cameerarol, no other post here, I no use payingpal yet., thank

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width


HTML5 Development Center

Poll by Flashkit.com