Help with taking a pic with Android camera and adding pic to display list

Hi,
My students and I have not been able to make an AIR app that can take a picture using the devices camera and then add the image to the display list. We are able to open the devices camera and of course take a picture, but that's it.
We've been using these two tutorials/examples:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fla sh/media/CameraUI.html
and
http://tv.adobe.com/watch/adc-presents/input-for-mobile-devices-camera /
I've uploaded our project: http://www.dayvid.com/professor/camera.zip
Can someone help us out?
Thanks!
Below is the main document class:
package  {
import flash.desktop.NativeApplication;
import flash.display.Loader;
import flash.display.MovieClip;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.ErrorEvent;
import flash.events.Event;
import flash.events.IOErrorEvent;
import flash.events.MediaEvent;
import flash.media.CameraUI;
import flash.media.MediaPromise;
import flash.media.MediaType;
import flash.events.MouseEvent;
     public class Main extends MovieClip{
          private var deviceCameraApp:CameraUI = new CameraUI();
          private var imageLoader:Loader;
          public function Main()
               this.stage.align = StageAlign.TOP_LEFT;
               this.stage.scaleMode = StageScaleMode.NO_SCALE;
                                 camera_btn.addEventListener(MouseEvent.CLICK, cameraBtnClicked);
                      private function cameraBtnClicked(event:MouseEvent):void
                                if( CameraUI.isSupported )
                                                  result_txt.text = "Initializing camera...";
                                                  deviceCameraApp.addEventListener( MediaEvent.COMPLETE, imageCaptured );
                                                  deviceCameraApp.addEventListener( Event.CANCEL, captureCanceled );
                                                  deviceCameraApp.addEventListener( ErrorEvent.ERROR, cameraError );
                                                  deviceCameraApp.launch( MediaType.IMAGE );
               else
                                                  result_txt.text = "Camera interface is not supported.";
          private function imageCaptured( event:MediaEvent ):void
               result_txt.text = "Media captured...";
               var imagePromise:MediaPromise = event.data;
               if( imagePromise.isAsync )
                result_txt.text = "Asynchronous media promise.";
                imageLoader = new Loader();
                imageLoader.contentLoaderInfo.addEventListener( Event.COMPLETE, asyncImageLoaded );
                imageLoader.addEventListener( IOErrorEvent.IO_ERROR, cameraError );
                imageLoader.loadFilePromise( imagePromise );
               else
                result_txt.text = "Synchronous media promise.";
                imageLoader.loadFilePromise( imagePromise );
                showMedia( imageLoader );
          private function captureCanceled( event:Event ):void
               result_txt.text = "Media capture canceled.";
               NativeApplication.nativeApplication.exit();
          private function asyncImageLoaded( event:Event ):void
               result_txt.text = "Media loaded in memory.";
               showMedia( imageLoader );  
          private function showMedia( loader:Loader ):void
               this.addChild( loader );
          private function cameraError( error:ErrorEvent ):void
               result_txt.text = "Error:" + error.text;
               NativeApplication.nativeApplication.exit();

Hi,
My students and I have not been able to make an AIR app that can take a picture using the devices camera and then add the image to the display list. We are able to open the devices camera and of course take a picture, but that's it.
We've been using these two tutorials/examples:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fla sh/media/CameraUI.html
and
http://tv.adobe.com/watch/adc-presents/input-for-mobile-devices-camera /
I've uploaded our project: http://www.dayvid.com/professor/camera.zip
Can someone help us out?
Thanks!
Below is the main document class:
package  {
import flash.desktop.NativeApplication;
import flash.display.Loader;
import flash.display.MovieClip;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.ErrorEvent;
import flash.events.Event;
import flash.events.IOErrorEvent;
import flash.events.MediaEvent;
import flash.media.CameraUI;
import flash.media.MediaPromise;
import flash.media.MediaType;
import flash.events.MouseEvent;
     public class Main extends MovieClip{
          private var deviceCameraApp:CameraUI = new CameraUI();
          private var imageLoader:Loader;
          public function Main()
               this.stage.align = StageAlign.TOP_LEFT;
               this.stage.scaleMode = StageScaleMode.NO_SCALE;
                                 camera_btn.addEventListener(MouseEvent.CLICK, cameraBtnClicked);
                      private function cameraBtnClicked(event:MouseEvent):void
                                if( CameraUI.isSupported )
                                                  result_txt.text = "Initializing camera...";
                                                  deviceCameraApp.addEventListener( MediaEvent.COMPLETE, imageCaptured );
                                                  deviceCameraApp.addEventListener( Event.CANCEL, captureCanceled );
                                                  deviceCameraApp.addEventListener( ErrorEvent.ERROR, cameraError );
                                                  deviceCameraApp.launch( MediaType.IMAGE );
               else
                                                  result_txt.text = "Camera interface is not supported.";
          private function imageCaptured( event:MediaEvent ):void
               result_txt.text = "Media captured...";
               var imagePromise:MediaPromise = event.data;
               if( imagePromise.isAsync )
                result_txt.text = "Asynchronous media promise.";
                imageLoader = new Loader();
                imageLoader.contentLoaderInfo.addEventListener( Event.COMPLETE, asyncImageLoaded );
                imageLoader.addEventListener( IOErrorEvent.IO_ERROR, cameraError );
                imageLoader.loadFilePromise( imagePromise );
               else
                result_txt.text = "Synchronous media promise.";
                imageLoader.loadFilePromise( imagePromise );
                showMedia( imageLoader );
          private function captureCanceled( event:Event ):void
               result_txt.text = "Media capture canceled.";
               NativeApplication.nativeApplication.exit();
          private function asyncImageLoaded( event:Event ):void
               result_txt.text = "Media loaded in memory.";
               showMedia( imageLoader );  
          private function showMedia( loader:Loader ):void
               this.addChild( loader );
          private function cameraError( error:ErrorEvent ):void
               result_txt.text = "Error:" + error.text;
               NativeApplication.nativeApplication.exit();

Similar Messages

  • HT4101 my lightening connection from my ipad mini to camera with usb deleted the pics from my camera and did not put them on the ipad

    lightning connection from my ipa mi to camera with usb delted the pics fom my camera and they are not ony ipad

    Where did the movies come from?
    For what you said you should be easily be able to do what you want except for:
    "remove them from the ipad but still have access to them for viewing on the road or at hotel"
    Home sharing only works wehn the devices are connected to the same network
    Understanding Home Sharing
    If they are iTunes purchases, you should be able to redownload most iTunes purchases on the road if you have an internet connection by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • SCOM - -500 Internal Server Error - There is a problem with the resource you are looking for, and it cannot be displayed

    Hi There,
    Need your assistance on the issue that we are facing in prod environment.
    We are able to open web console from remote machine and able to view monitoring pane as well as my workplace folders from console . Able to view and access alerts and other folder in the monitoring pane. We are able to view and access My Workplace folder
    and able to view the reports in Favorite Reports folder. But when I click on run Report we  are getting the below error  "500 Internal Server Error - There is a problem with the resource you are looking for, and it cannot be displayed."
    In our environment we have 3 servers one is SQL server and two are SCOM servers. Please advise how to fix this issue. Do we have to do any thing from SQL End?
    Errors: Event ID 21029: Performance data from the OpsMgr connector could not be collected since opening the shared data failed with error "5L".
     Event ID 6002 : Performance data from the Health Service could not be collected since opening the shared data failed with error 5L (Access is denied.).
    Regards,
    Sanjeev Kumar

    Duplicate thread:
    http://social.technet.microsoft.com/Forums/en-US/7675113e-49f0-4b3a-932b-4aceb3cfa981/scom-500-internal-server-error-there-is-a-problem-with-the-resource-you-are-looking-for-and-it?forum=operationsmanagerreporting
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • 502 - Web server received an invalid response while acting as a gateway or proxy server. There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream cont

    I am getting error while accessing url of lyncweb.domain.com, dialin.domain.com and meet.domain.com pointing to RP server.
    502 - Web server received an invalid response while acting as a gateway or proxy server.
    There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.
    Regards, Ganesh, MCTS, MCP, ITILV2 This posting is provided with no warranties and confers no rights. Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread.

    When i try with https://lyncfrontend.domain.local:4443 and https://lyncfrontend.domain.com:4443 both opens but when i open the external domain name i get certificate .
    ARR version installed is 3.0
    To throw more light on the configuration:
    Lync 2013 implemented, internal domain name is : domain.local and external domain name is : domain.com
    All servers in VMs are with 4 core processor, 24gb ram, 1TB drive.
    Frontend : Windows 2012r2 with Lync 2012 Standard Edition - 1 No (192.168.10.100)
    Edge : Windows 2012 with Lync 2012 Std - 1 No 
    (192.168.11.101 DMZ) in workgroup
    ISS ARR Reverse Proxy 3.0 : Windows 2012 with ARR and IIS configured. (192.168.11.102)
    Certificate : Internal Domain root CA for internal and External (Digicert).
    Internal Network : 192.168.10.x /24
    External Network (DMZ) : 192.168.11.x /24
    Public Firewall NAT to DMZ ip for firewall and RP server. So having two public IP facing external network.
    Edge has : sip.domain.com, webconf.domain.com, av.domain.com
    IIS ARR RP server has : lyncdiscover.domain.com, lyncweb.domain.com, meet.domain.com, dialin.domain.com
    Have created SRV record in public : _sip.tls.domain.com >5061>sip.domain.com, _sipfederationtls._tcp.domain.com>5061>sip.domain.com, _xmpp-server._tcp.domain.com>5269>sip.domain.com
    Installed frontend server using MS Lync server 2013 step by step for anyone by Matt Landis, Lync MVP.
    Internal AD Integrated DNS pointing Front-end
    Type of Record FQDN
    IP Description 
    A sip.domain.com
    192.168.10.100 Address internal Front End  or Director for internal network clients 
    A admin.domain.com
    192.168.10.100 URL Administration pool
    A DialIn.domain.com
    192.168.10.100 URL Access to Dial In 
    A meet.domain.com
    192.168.10.100 URL of Web services meeting
    A lyncdiscoverinternal.domain.com
    192.168.10.100 Register for Lync AutoDiscover service to internal users
    A lyncdiscover.domain.com
    192.168.10.100 Register for Lync AutoDiscover service to external users  
    SRV Service: _sipinternaltls Protocol: _tcp Port: 5061
    sip.domain.com Record pointer services to internal customer connections using TLS 
    External DNS pointing Edge & Proxy
    Type of Record FQDN
    IP Endpoint
    A sip.domain.com
    x.x.x.100 Edge
    A webconf.domain.com
    x.x.x.100 Edge
    A av.domain.com
    x.x.x.100 Edge
    SRV _sip._tls.domain.com
    sip.domain.com: 443 Edge
    SRV _sipfederationtls._tcp.domain.com
    sip.domain.com:5061 Edge
    A Meet.domain.com
    x.x.x.110 Reverse Proxy
    A Dialin.domain.com
    x.x.x.110 Reverse Proxy
    A lyncdiscover.domain.com
    x.x.x.110 Reverse Proxy
    A lyncweb.domain.com
    x.x.x.110 Reverse Proxy
    In IIS ARR proxy server following server farms are added and configured as per link ttp://y0av.me/2013/07/22/lync2013_iisarr/
    In proxy server had setup only following server farm : While running remote connectivity web service test : meet, dialin, lyncdiscover and lyncweb.
    The client inside works fine internally and through vpn. Login with external client also working fine. But we are getting error in MRCA as follows.
    a) While testing remote connectivity for lync getting error : The certificate couldn't be validated because SSL negotiation wasn't successful. This could have occurred as a result of a network error or because of a problem with the certificate installation.
    Certificate was installed properly.
    b) For remote web test under Lync throws error : A Web exception occurred because an HTTP 502 - BadGateway response was received from IIS7.
    HTTP Response Headers:
    Content-Length: 1477
    Content-Type: text/html
    Date: Wed, 14 May 2014 10:03:40 GMT
    Server: Microsoft-IIS/8.0
    Elapsed Time: 1300 ms.
    Regards, Ganesh, MCTS, MCP, ITILV2 This posting is provided with no warranties and confers no rights. Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread.

  • Problems with my Microsoft Surface 2 video Camera and Adobe Connect

    Hi,
    I have a new Microsoft Surface 2 that I am trying to get to work with Adobe Connect.  I enable the camera and see the box for it in Adobe Connect but the box only has black in it and not an image.  Does anyone have any ideas?
    Thanks!
    Dale

    Hi dkalsow,
    Does Preview on video pod shows the video feed from you camera.
    Also make sure if it is being detected by Flash's Settings dialog.
    you can check that by right clicking when meeting is opened and click on camera icon and check
    thanks
    Nikhil

  • Recording audio and adding pics

    I have an iPhone 4 and I would like to record myself singing a song and put it to pics from my phone without hooking up to a computer. How can I do this? Is there an app for that? I've found ones with will do it to songs on my playlist but not a recording

    Hi Comoass,
    The application that I would recommend for you would be iMovie. With iMovie, you can create your project and record audio, such as a voiceover, directly into the project. This first link is a general overview of iMovie for iOS.
    Apple - iMovie for iOS
    http://www.apple.com/ios/imovie/
    This link has instructions for moving your pictures into iMovie.
    iMovie Help for iPhone: Add video clips and photos from the Camera Roll or Photos app
    http://help.apple.com/imovie/iphone/2.0/index.html#knac787725
    This link has instructions for adding the audio into your iMovie project.
    iMovie Help for iPhone: Add audio
    http://help.apple.com/imovie/iphone/2.0/index.html#kna257fc2a9
    Thanks for reaching out,
    -Joe

  • Using a devices camera and adding the image to the display list

    Hi,
    My students and I have not been able to make an AIR app that can take a picture using the devices camera and then add the image to the display list. We are able to open the devices camera and of course take a picture, but that's it.
    We've been using these two tutorials/examples:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/CameraUI.ht ml
    and
    http://tv.adobe.com/watch/adc-presents/input-for-mobile-devices-camera/
    I've uploaded our project: http://www.dayvid.com/professor/camera.zip
    Can someone help us out?
    Thanks!
    Below is the main document class:
    package  {
    import flash.desktop.NativeApplication;
    import flash.display.Loader;
    import flash.display.MovieClip;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    import flash.events.ErrorEvent;
    import flash.events.Event;
    import flash.events.IOErrorEvent;
    import flash.events.MediaEvent;
    import flash.media.CameraUI;
    import flash.media.MediaPromise;
    import flash.media.MediaType;
    import flash.events.MouseEvent;
         public class Main extends MovieClip{
              private var deviceCameraApp:CameraUI = new CameraUI();
              private var imageLoader:Loader;
              public function Main()
                   this.stage.align = StageAlign.TOP_LEFT;
                   this.stage.scaleMode = StageScaleMode.NO_SCALE;
                                     camera_btn.addEventListener(MouseEvent.CLICK, cameraBtnClicked);
                          private function cameraBtnClicked(event:MouseEvent):void
                                    if( CameraUI.isSupported )
                                                      result_txt.text = "Initializing camera...";
                                                      deviceCameraApp.addEventListener( MediaEvent.COMPLETE, imageCaptured );
                                                      deviceCameraApp.addEventListener( Event.CANCEL, captureCanceled );
                                                      deviceCameraApp.addEventListener( ErrorEvent.ERROR, cameraError );
                                                      deviceCameraApp.launch( MediaType.IMAGE );
                   else
                                                      result_txt.text = "Camera interface is not supported.";
              private function imageCaptured( event:MediaEvent ):void
                   result_txt.text = "Media captured...";
                   var imagePromise:MediaPromise = event.data;
                   if( imagePromise.isAsync )
                    result_txt.text = "Asynchronous media promise.";
                    imageLoader = new Loader();
                    imageLoader.contentLoaderInfo.addEventListener( Event.COMPLETE, asyncImageLoaded );
                    imageLoader.addEventListener( IOErrorEvent.IO_ERROR, cameraError );
                    imageLoader.loadFilePromise( imagePromise );
                   else
                    result_txt.text = "Synchronous media promise.";
                    imageLoader.loadFilePromise( imagePromise );
                    showMedia( imageLoader );
              private function captureCanceled( event:Event ):void
                   result_txt.text = "Media capture canceled.";
                   NativeApplication.nativeApplication.exit();
              private function asyncImageLoaded( event:Event ):void
                   result_txt.text = "Media loaded in memory.";
                   showMedia( imageLoader );   
              private function showMedia( loader:Loader ):void
                   this.addChild( loader );
              private function cameraError( error:ErrorEvent ):void
                   result_txt.text = "Error:" + error.text;
                   NativeApplication.nativeApplication.exit();

    Hi,
    Do I have to add the picture to the cameraroll in order to add it to the AIR apps display list?
    Both examples from Adobe claim that their examples work. Do they not?
    In the example, the event handler asyncImageLoaded is never called. The output text field shows -   result_txt.text = "Asynchronous media promise."; So the Event.COMPLETE is being added. But I don't think it's being dispatched.
    Any ideas?

  • Taking Photo's with the camera and adding as a contact photo

    Using my new Palm Pre 2 and took a photo to add as a contact.
    The process is simple enough to assign the photo taken to the contact, by lining up within the square and pressing Assign to contact.
    However the end result just shows a blurred image of the enlarged photo.
    Does anyone know how a picture taken with the camera can be set to view correctly as the contact?
    Imported photo's work fine, but that defeats the object, i.e. you see a friend, take their photo but can't add it correctly to your contacts.
    Post relates to: Pre 2 p102ueu (Unlocked EU)

    Kookie wrote:
    I got an HP touch pad and when tapping the camera the screen comes up faceing me with my picture,  If I want a picture of something else I have to turn it around with the back to me and I can't see the picture to focus sit.  Is that right?
    Like, I can only take a picture toward me, not in front of me.
    That's correct - there is only one camera on the TouchPad, and it was meant for video chatting.  The camera app was added by HP as an afterthought when other Homebrew authors started writing their own "Camera" apps.
    Wyrenut 
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Simple audio with video recorded on built in camera and mic

    New to imovie 09 ( or any version) need to video tape a presentation with audio - video is ok, can not figure out how to listen to the audio or make the video full screen. HELP

    Hope info from this article is helpful.
    http://support.apple.com/kb/HT2090
    Reset SMC.     http://support.apple.com/kb/HT3964
    Choose the appropriate method.
    If this does not help, contact Apple.
    Best.

  • IPhoto 09: try to import pics from Nikon camera and tells me it does not recognise JPG format. Also if I double click an image in my library, screen goes black and program crashes. Any hints or fixes?

    Does anyone know how to fix these?

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • When I mail merge a message that incudes a table with an excel spreadsheet, the table disappears and the data appears in list form

    I've tried both creating the table using Thunderbird, as well as creating the table in Word first and the problem is the same. I've reinstalled and updated both the mail merge add on and Thunderbird.

    If you do not need all the excel specific items you can just write it to a spreadsheet using the write to spreadsheet file vi's.
    If you want to go the excel route you will have to use active x. you can see a lot of examples on the excel board under the breakpoint forum. please post a sample of how you want your data to look and I can maybe help explain what options you have. and also oyu do not necesarily need the report generation toolkit.
    Joe.
    "NOTHING IS EVER EASY"

  • Downloaded ios 6 on iphone 4s, iphone has a pic of cord/plug and itunes pic above it. What can I do?

    I downloaded ios 6 on iphone 4s, the iphone has a pic of a connection cord with iTunes written above it.  When I connected the iphone to the laptop I get the message "itunes detected an iphone in recovery mode. You must restore this iphone before it can be used with itunes"  What does this mean?  Do I have to restore the iphone to factory settings?  I have data in the iphone that I can not lose.  Please help me.

    Ing238 wrote:
    I downloaded ios 6 on iphone 4s,
    How exactly were you able to do that? Since the only signed software, for your phone, is iOS 7.0.3, that's the only version of iOS you could install on your phone.

  • I updated to iso6 on my g4 iPhone and added a VIP contact list.  My problem is I can't pull up the VIP list. HELP

    I updated my ipad2 with the iso6.  I then created a VIP list. My problem is all my VIP contacts disappeared from my regular contact list and I cannot access my VIP list. HELP

    Yes there is a location for the outgoing smtp server password, if it is incorrect or missing it will not send mail.
    On the Gmail account preference pane locate the outgoing mail server, click the blue arrows and a list will open and Edit SMTP server will show. Select this and then select gmail and advanced, it will give a location for your email address and password.

  • I have a white haze over photos when taking a picture with my flash

    I have a white haze over photos when taking a picture with my flash.  What can I do to fix it?

    After the ios7 update, my wife's phone began having these same issues and we assumed it was a flaw with the update.
    But  after some trial and error, we concluded it was the illumination of the  white plastic backing of the iPhone 4.  We tried a different protective  case, we blackened the apeture of the black case with a black sharpie,  none of those things worked.
    It  was noted that the white and blurry photos only occurred with a case  installed.  Without a case, the photos were perfect.  It is a *** issue.
    Since  we were using a case and appearance was not that big of an issue, I  decided to apply a strip of black electrical tape with holes punched out  for the camera and flash mechanisms and reapplied the protective case.   This tacky fix solved 95% of the white blurry look to the flash photos.
    So  a work-around is to apply a non-transparent piece of tape, or sticker  with appropiate sized holes for the camera lens and flash LED on the  back of the white plastic phone case.  It's tacky, it's a poor design  from apple, but it works.

  • Solution: iPad/iPhone Login issues with IIS as Reverse Proxy (Android and Windows Phone works)

    Hi,
    I had issues with iPad/iPhone access from external and tried a lot. Now I found my solution I like to share.
    I setup a IIS on Windows Server 2012 with ARR 2.5 and Android and Windows Phone could login but not iPad and iPhone.
    The IIS Log on the reverse proxy showed:
    2013-02-26 12:03:31 <IP> POST /webticket/webticketservice.svc X-ARR-CACHE-HIT=0&X-ARR-LOG-ID=1996c8d7-09d0-4310-8da4-a8dfb7940e28 443 - <ClientIP> Lync%202010/1.6+CFNetwork/609+Darwin/13.0.0 - 401 0 0 124
    2013-02-26 12:03:31 <IP> POST /webticket/webticketservice.svc X-ARR-CACHE-HIT=0 443 - <ClientIP> Lync%202010/1.6+CFNetwork/609+Darwin/13.0.0 - 502 3 12018 93
    First Request gets a 401 while anonymous. Second try would be with authentication but it never reached the internal front end server.
    After I installed a fix for ARR
    http://forums.iis.net/t/1195560.aspx/1?ARR+502+3+Bad+Gateway+0x80072ef2+2147954418+The+supplied+handle+is+the+wrong+type+for+the+requested+operation the Apple Devices could login.

    Hi,
    This resolved our problem too!! So happy after 2 weeks of messing around with just about every setting recommended from all types of forums and rebuilding our reverse proxy I was at a loose end. 
    Our environment is Lync 2013 Enterprise, Lync 2013 Edge, IIS as Reverse Proxy on Server 2012 using ARR 2.5
    We had Android and Windows clients working but no iOS devices at all. In the iOS log we were seeing 
    <h1>Server Error</h1></div><div id="content"> <div class="content-container"><fieldset> <h2>502 - Web server received an invalid response while acting as a gateway or proxy server.</h2> <h3>There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.</h3> </fieldset></div></div></body></html>
    When the client was trying to retrieve from the webticketservice.svc
    2013-04-11 17:19:44.659 Lync[4970:6c61000] INFO TRANSPORT TransportUtilityFunctions.cpp/907:<ReceivedResponse>
    POST https://lyncwebext.contoso.com/webticket/webticketservice.svc
    Request Id: 0x72cfc18
    HttpHeader:Content-Length 1477
    HttpHeader:Content-Type text/html
    HttpHeader:Date Thu, 11 Apr 2013 16:22:25 GMT
    HttpHeader:Server Microsoft-IIS/8.0
    HttpHeader:StatusCode 502
    Installed the HotFix from here:-
    Hotfix for Microsoft Application Request Routing Version 2.5 for IIS7 (KB 2732764) (x64)
    Rebooted the Reverse Proxy and iOS clients worked straight away for both Lync 2010 and Lync 2013 on both iPhone 5 and iPad both. 
    I hope this helps others as I was losing the plot :-)
    Cheers
    Sam

Maybe you are looking for