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
Post a Comment