Hi,
i have a BroadcastReceiver class that listens for Incoming Calls. When the BroadcastReceiver is called i want to start a Mediaplayer and when its called for a second time the MediaPlayer should be stopped.
I initialize the MediaPlayer in the BroadcastReceiver but when i am trying to get its status (mediaplayer.isPlaying()) i always gives false.
Where should i initialize the MediaPlayer, so i can start and stop playing the sound?
Regards,
Nicos