I am making an application that needs to be running a thread that takes a frame using the camerakit package, and processes that frame to give a result.
This processing is expensive, so I it is not recommended to use UI thread, so the problem I had when using the HandleThread is that it is not connected to the Activity lifecycle, so the variable that store the camerakit is null within that thread.
Another point is that I need to update UI components with the result of this processing, taking that into consideration, what kind of thread should I use? Or should I use several types of Thread and connect them using some kind of message.