Skip to main content
Known Participant
October 4, 2011
Question

Release Camera from Android App

  • October 4, 2011
  • 1 reply
  • 921 views

I have an app which utilizes the camera.

While the app is running, other apps such as the Camcorder, have issues with the camera.

The Camcorder will display the video but will not record.

The video file is created but not data in it. 0 bytes.

How can I truly release the Camera from my app so it can be used in other applications?\

I have tried various combinations of the following: ( recorder being the AS3 class which contains the camera,netstream, video, netconnection, etc.. )

  recorder.camera = null;

                                        //delete recorder.camera;

                                        //recorder.camera = new Camera();

                                        recorder.video.attachCamera(null);

                                        removeChild(recorder);

                                        recorder = new Recorder();

                                        System.gc();

If I close the app, all is well again. No need to reboot.

This topic has been closed for replies.

1 reply

DachFlachAuthor
Known Participant
April 3, 2012

Anbody know if the new release of AIR 3.2 will fix this problem. Or if there is an alternative solution?