How are long running background tasks handled in Android Things? Can developers rely on unbound Services being kept alive by the system?
How does Android Things handle long running background tasks?
615 views Asked by jbxbergdev At
1
How are long running background tasks handled in Android Things? Can developers rely on unbound Services being kept alive by the system?
Because you are the only application running in Android Things you will not be interrupted like usual on an Android mobile device. You can also just use Services like normal if that is what you desire.
Further you can create a background threaded task, this will not be killed or anything and can continue to run in the background for as long as your Activity is around (which with Android Things, will be the whole lifespan of the device being turned on).