I have an application that does very heavy image processing. My application processes very low resolution images in action, and I intend to perform full resolution image processing in the service, so even if the application is closed by the user, the result of processing and saving will be performed using the service in the background. I tried this, and even my service continues to run JNI functions, stopping work when the application is closed. I'm not sure about the real reason, but I suspect that the native library is unloaded when the application is closed. So my question is, how can I make JNI calls from the Service, even if the application is closed?
source share