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 trialab ul
249 PointsWant to show toast on completion of task in service
I want to show a toast on completion of downloading song in a service, so i create an interface declare a method inside and implement this(interface) on activity inside activity i implement this method ,then in service create object using interface reference and call activity's method implementation but a null pointer exception is raised