Why use service for background music in android -


why should service used playing background music in android? why not create media player object loop player play music?

thanks!

keyword background. if tie media player object activity, don't have guarantee object around if activity goes background. gc destroy when resources become low.
therefore using service safer. , services designed running in background unlike activities.


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

php - Boolean search on database with 5 million rows, very slow -

css - Text drops down with smaller window -