Skip navigation
Currently Being Moderated

Release Camera from Android App

Oct 4, 2011 2:39 PM

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.

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points