Ruggero1912 / TrainerApp

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

Implement the ListView Adapter, update the athlete class with all the infos to be shown, add a mechanism in the AthletesManager to notify the adapter when new data is available #5

Closed Ruggero1912 closed 2 years ago

Ruggero1912 commented 2 years ago

In order to update the UI when new data arrives from the GATT clients:

A good mechanism for the notification could be a broadcast receiver (using LocalBroadcastManager) (but seems to be deprecated).

Otherwise consider this: https://developer.android.com/reference/androidx/lifecycle/LiveData

Ruggero1912 commented 2 years ago

https://stackoverflow.com/questions/46207758/livedata-vs-handler-and-localbroadcast