Skip to main content
Known Participant
July 22, 2013
Question

Severe performance issue with Camera on Android running on Galaxy S2

  • July 22, 2013
  • 0 replies
  • 322 views

Hello guys,

I am building an app for both iOS and Android and i have a big issue that i don't know how to overcome on Android.

I have the following code:

------------

var vid:Video;

var cam:Camera;

cam = Camera.getCamera();

cam.setMode(320,240,12);

trace("CAMERA:",cam.width, cam.height, Camera.names);

vid = new Video(320,240);

vid.attachCamera(cam);

vid.x = 0;

vid.y = 0;

addChild(vid);

-------------

If i set the camera mode to 640x480 the app freezes/refreshes every 20/30 seconds.

(works on iOS without any issues.)

I have tried using air versions from 3.6->3.8 with Direct, CPU and GPU mode.

Android version on my test phone phone is 4.0.4.

link to test apk:  http://goo.gl/8e99Ya

Thanks!

After HOURS of testing managed to see that the problem only occurs in PORTRAIT MODE! lanscape mode works as it should

Any thoughts ?

This topic has been closed for replies.