Fixed
Status Update
Comments
er...@google.com <er...@google.com>
hu...@google.com <hu...@google.com>
ap...@google.com <ap...@google.com> #2
SDK Revision 5
Description
CAMERA APPLICATION NAME AND VERSION: Any
ANDROID OS BUILD NUMBER: Any
DEVICE NAME: Any
DESCRIPTION:
I have implemented my own subclass of ImageAnalysis.Analyzer and it works as expected. Now I want to "attach/detach" this analyzer to the ImageAnalysis class dynamically (based on some user actions). From the ImageAnalysis API it looks like it is possible, there is setAnalyzer method and also clearAnalyzer method. However, this works correctly only on the first setAnalyzer call. If I call then clearAnalyzer and setAnalyzer again, analyze method is not called.
STEPS TO REPRODUCE:
1. Call setAnalyzer. analyze method is called with images - correct
2. Call clearAnalyzer. analyze method is not called - correct
3. Call setAnalyzer. analyze method is not called - incorrect
OBSERVED RESULTS:
After clear/set analyzer calls, analyze method is not called
EXPECTED RESULTS:
After clear/set analyzer calls, analyze method is called again
REPRODUCIBILITY: Always
ADDITIONAL INFORMATION:
Link to StackOverflow with response from Googler: