I'm using the cwac-camera and it seems to work fine. The only problem is when I hit the back button. I'm getting some lag when returning to the previous fragment. I've tried to change the CameraFragment class by putting the code on the onPause method in an Async task, but nothing changed...
I am sure the problem is with the CameraFragment because I tested with a normal fragment (no camera) and the lag disappeared.
Can anyone tell me how to solve this?
Thanks in advance
The CameraFragment was not being paused because I was using a FragmentAdapter without passing the ChildFragmentManager in instantiation. Consequently the fragments instantiated by the adapter where not being destroyed.