Improve response time for Photo action
izivkov opened this issue · 1 comments
izivkov commented
Currently. when Photo action is run, it takes long time. This is because the Camera code hogs the Main Thread, and the MainActivity does not get the "Disconnect" event. As a workaround, we wait until the connection is closed, and then take the picture.
A better solution would be if the "Photo Action" is executed immediately, and when done sends a Reset Connection
custom event. The main thread (Main Activity) will be able to receive this event, and run the same code as when it gets "Disconnect" event - basically, wait for connection again.
izivkov commented
Done