A Flash Developer Resource Site

Results 1 to 9 of 9

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

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

    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
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404
    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.

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

  5. #5
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404
    dont thank me, thank my paypal with a dollar lol

  6. #6
    Senior Member
    Join Date
    Aug 2012
    Posts
    115
    hels,

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

  7. #7
    Junior Member
    Join Date
    Mar 2018
    Posts
    8
    Hello SteveLovejoy, i need to develop the same function in my first app , can you help me to integrate that function?
    Thanks!!

  8. #8
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404
    adobe should just let you screen shot the desktop that's weird you cant get more root than stage to get the chromeless background colors, the movieclips are alone with the desktop and we cant get those channels?
    Last edited by AS3.0; 03-06-2018 at 03:21 AM.

  9. #9
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Maybe

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