• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps start media player more than one time

Thayar

Newbie
I have nearly 20 images in a same layout.
I need to play a button click sound when I hit an image.
So I start a mediaplayer in each onclick event.
So that i don't know where to stop the mediaplayer in order to avoid crash?
 
I Guess we need some more information than that plz

in the onclick events why dont you stop the player after so many seconds of playback?
I dont know enough but I think it would be easy enough done, if what limited grasp I have of the problem from your slimiest of postings. How about posting your onclick event code so we can see whats the best way to help.

For what crash what error?

As Johney Five or five once said "Need Input" :D
 
Back
Top Bottom