[android-developers] Re: Check whether media player is playing media or not

2011-10-25 Thread Sunil Mishra
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

[android-developers] Re: Check whether media player is playing media or not

2011-10-24 Thread Jeremy Dagorn
Hi, http://developer.android.com/reference/android/media/MediaPlayer.html#isPlaying%28%29 MediaPlayer.isPlaying()? On Oct 24, 9:23 am, Sunil Mishra suniljmis...@gmail.com wrote: Hi, Is there any api through which we can figure out whether media player is currently playing any media or not?

[android-developers] Re: Check whether media player is playing media or not

2011-10-24 Thread Sunil Mishra
Can i use MediaPlayer as a static object? On Oct 24, 6:57 pm, Jeremy Dagorn jeremy.dag...@gmail.com wrote: Hi, http://developer.android.com/reference/android/media/MediaPlayer.html... MediaPlayer.isPlaying()? On Oct 24, 9:23 am, Sunil Mishra suniljmis...@gmail.com wrote: Hi, Is

[android-developers] Re: Check whether media player is playing media or not

2011-10-24 Thread Studio LFP
You can't use MediaPlayer.isPlaying() as a static method as it is an instanced method. You can have the MediaPlayer instance you create/use be in a static variable and work with it from there. Steven Studio LFP http://www.studio-lfp.com On Monday, October 24, 2011 9:38:39 AM UTC-5, Sunil

[android-developers] Re: Check whether media player is playing media or not

2011-10-24 Thread Robert Nekic
What about the AudioManager's isMusicActive? http://developer.android.com/reference/android/media/AudioManager.html#isMusicActive() On Oct 24, 11:42 am, Studio LFP studio@gmail.com wrote: You can't use MediaPlayer.isPlaying() as a static method as it is an instanced method. You can

[android-developers] Re: Check whether media player is playing media or not

2011-10-24 Thread Sunil Mishra
But doing so, will it create a new media player instance or it will be able to fetch the current ongoing session? I want to check whether inbuilt media player is active and playing media or not. Any sample code for that? On Oct 24, 8:42 pm, Studio LFP studio@gmail.com wrote: You can't use

Re: [android-developers] Re: Check whether media player is playing media or not

2011-10-24 Thread Mark Murphy
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