I’m beginner so plz handle.
I made a music participant app utilizing recycler view. Recycler view is in primary exercise exhibiting songs identify. I made a separate adapter class through which I utilized on click on listener in bindview methodology. In on click on listener I applied intent calling one other activiy musicplay which is taking part in the track. Now the issue is when a track is already taking part in and I press again and click on on one other track, it additionally begins taking part in together with earlier track. I attempted to cease and reset media participant in adapter by taking occasion of musicplay class however it did not work. I attempted to implement audio focus change however wasn’t profitable in that. I assumed to implement media participant in adapter class however it can make my code messy. Any assistance is appreciated.