Quantcast
Channel: Adobe Community : All Content - AIR Development
Viewing all articles
Browse latest Browse all 2954

Severe performance issue with Camera on Android running on Galaxy S2

$
0
0

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 ?


Viewing all articles
Browse latest Browse all 2954

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>