MediaPlayer being disposed of, killing music.

All your problems with Audio, Video and Images.

MediaPlayer being disposed of, killing music.

Postby wizlon » Mon Jun 13, 2011 8:40 pm

Hi all, haven't been over where in a while but I'm a bit stumped so I hope someone can lend me a hand.

I have created a music player which is on the market and doing fairly well, and while it works fairly well I'm having a massive problem where it appears that the MediaPlayer object is being disposed of at a random point which kills the currently playing music, not very good for a music player.

I have the guts of my media player in a service, my MediaPlayer object is a global object and is created in the onCreate() of the service. I have an aidl interface hooked up as a WeakReference to pass through messages (pause, play, next, etc).

I'm running my app on a Nexus One running 2.3.4 and I've had the same problem on 2.2, I have no AppKillers installed and I'm not performing any intensive tasks while my music is playing. Why is Android killing my MediaPlayer object/service and how can I stop it.
wizlon
Junior Developer
Junior Developer
 
Posts: 23
Joined: Mon Jan 07, 2008 2:17 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 8 guests