Android- Resuming Service in Activity and destroying them on destroy
问题 I currently have an Activty that when created starts and binds with a service . This service has a mediaplayer . What I would like to do is if the activity is resumed then the service keeps playing, etc. When the activity is destroyed, it should stop the service . So far I can get both the service to keep playing when activity is re-activated and the service to stop when a new activity is created but not both together. Any suggestions or ideas? Thanks. Code below: Activity class: public class