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/commonsguy http://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