Bound service and MVVM I have followed Google's tutorial on how to get data from a Bluetooth Low Energy device. It uses a bound service to get the data back to the activity. However I want to use the MVVM pattern and have the view get the data from the Viewmodel instead.

Since ViewModels aren't supposed to have any android framework classes etc, the Service can't be bound to the ViewModel. And since the service broadcasts data to the Activity what's the point of using a ViewModel to begin with? How do I combine the two?

To me it seems like the service is the Model of the app but it directly communicates with the View. Am I missing something? Any help is appreciated.