How does Android Things handle long running background tasks?

602 views Asked by At

How are long running background tasks handled in Android Things? Can developers rely on unbound Services being kept alive by the system?

1

There are 1 answers

3
Blundell On

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).