In my last blog, I talked about how devs can use Kotlin coroutines to efficiently handle long-running tasks in their apps:
The method outlined works well when the user is using your app, but as soon as the user exits the app, the system kills the app and all the processes spawned by it. I faced this issue while working on AfterShoot when I had to run my machine learning model through all of a given user’s images.
Continue reading Using foreground services for executing long-running processes in Android