I'm making a music player and using a Service to playback audio files.
Is it correct to start the service in a Activity?
The service should start when a item in a list is being pressed, is it fine to put that onClick function in a Activity?
From my knowledge a ViewModel should handle onClick events, but the ViewModel can't start a Service since it doesn't have Activity context.