We are adding Affdex Android SDK to our existing APP to detect the emotion of the user as a way to measure users' satisfaction when they use the APP.
We plan to use CameraDetector for this purpose so that we can monitor the users' emotion continuously: http://developer.affectiva.com/v3/android/analyze-camera/
CameraDetector requires a SurfaceView to work. To my understanding, SurfaceView is associated with Activity. When we transit to another Activity, the SurfaceView will get destroyed and we need to initialise it again. The question is similar to the following: Keeping Android camera open across activities
What is the best practice and recommendation for this kind of use case? Is there any workaround?