Skip to content Skip to sidebar Skip to footer

Thread And Mediaplayer Problems, Timer With Sound

I'm developing an Android application that is based on a timer that every second must play a sound that you selected before. Here is the problem: No objects can run Media Playe

Solution 1:

You can run a MediaPlayer in an extra Service.

Check this out for information about Service. Also, this link might be useful to handle the MediaPlayer with a Service.

You could then call the functions of your Service to handle the MediaPlayer.

Post a Comment for "Thread And Mediaplayer Problems, Timer With Sound"