I have MainActivity that has a button and calls FlirOneActivity (which is the same as PreviewActivity in the example app).
In MainActivity.onStart I do Device.startDiscovery to get notified when it’s connected. If the button is pressed before MainActivity.onDeviceConnected, then I show an error dialog. Otherwise, I first do Device.stopDiscovery, and then start FlirOneActivity.
Now, if MainActivity calls Device.startDiscovery and then Device.stopDiscovery, before calling FlirOneActivity, there’s no way I can see a thermal preview. The camera just shows a normal image, with nothing applied.
FlirOneActivity is the same as PreviewActivity in the example app, so onCreate I do:
Why could it possibly be, that even after setting the FrameProcessor to ThermalRGBA8888Image, I still see a normal image?
It doesn’t happen if MainActivity doesn’t call Device.startDiscovery and then Device.stopDiscovery.