Thanks Robert and Mark, the suggestion given by Robert is working
fine!!

On Oct 25, 10:36 am, Mark Murphy <mmur...@commonsware.com> wrote:
> On Tue, Oct 25, 2011 at 1:27 AM, Sunil Mishra <suniljmis...@gmail.com> wrote:
> > I want to check whether inbuilt media player is active and playing
> > media or not. Any sample code for that?
>
> First, this is a list for development with the Android SDK.
> MediaPlayer is a class in the Android SDK. Referring to other things
> as "media player" will just confuse those trying to help you.
>
> Second, there is no single "inbuilt media player", to use your
> terminology. There are hundreds of Android devices. There will be many
> "inbuilt media player" applications as a result.
>
> You are welcome to try isMusicActive() on AudioManager, as was
> suggested previously, though I have no idea if that really works.
>
> Beyond that, AFAIK, the expectation is that your applications should
> be using the audio-focus capabilities of AudioManager to interact
> smoothly with other apps that may be playing audio.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training...At Your Office:http://commonsware.com/training

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to