1 Reply Latest reply on Sep 17, 2017 10:52 AM by Nancy OShea

    CamerUi file path problem

    kingkong012

      I am develope android  app with cmeraUi

      When I take picture by CameraUi

       

      cameraUi.addEventListener(MediaEvent.COMPLETE,onMediaComplete);

      cameraUi.addEventListener(Event.CANCEL,cameraCancel);

      cameraUi.launch(MediaType.IMAGE);

       

      private function onMediaComplete(e:MediaEvent):void{

      imgPath=e.data.file.url;

      imgLoader.loadFilePromise(e.data);

      imgLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,imgLoadComplete);

      }

       

       

      img path is temp folder

      so when I load this picture

      this picture url is changed  from tempfolder to dcim folder

       

      so I can not load this file;

      how to load this picture

       

      I use air 26 and testing android version 6.0