Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialRobin Damsgaard Larsen
13,929 Points"Pause" not changing to "Play" on song completion?
Am I missing something in my code, or is the Play/Pause button not working correctly when the the song ends (onCompletion runs stopSelf() in onStartCommand)?
2 Answers
Ben Deitch
Treehouse TeacherHey Robin!
Nope, you're not missing anything; our code doesn't handle that case. Here's a question from another student that has a solution though: https://teamtreehouse.com/community/how-do-i-notify-the-mainactivity-when-the-song-completes
Robin Damsgaard Larsen
13,929 PointsYeah, I noticed the solution suggested in the comments at the end of the course, so I got the play/pause button to work yesterday :)
Thanks for the heads-up though, and definitely great job covering some of the more difficult stuff in Android!