Ruggero1912 / TrainerApp

Trainer-side app of TrainAround
https://paciosoft.com/projects/trainaround
1 stars 0 forks source link

when the GATTServer service stops itself, it should broadcast this info #12

Closed Ruggero1912 closed 2 years ago

Ruggero1912 commented 2 years ago

So that the main acitivty / in general every other process that needs it, knows its status.

In this way the main activity would be able to restart the service when needed (for example in onResume).

Note: if you implement this broadcast, please implement also the main activity side of it, in order to manage the status of the service.

Ruggero1912 commented 2 years ago

done

Ruggero1912 commented 2 years ago

How to force android to keep the thread running as much as possible: https://stackoverflow.com/questions/9093271/start-sticky-and-start-not-sticky