On 14 April 2011 11:32, rajesh chandrasekaran <[email protected]>wrote:


>    In my application i have several activities and i want to start
> background music whenever my Application is launched then i need to
> pause music.
>
> May i know how to pause the background music. Any sample code???
>

That would depend on the app that currently is playing on user's device. If
it does not handle any i.e. intents for doing so you will do nothing about.
In general - left this to the user and allow him to turn *your* music off
too. Some may simply dislike whatever you are going to play and will prefer
something different. I often do that myself and I am extremelly pissed if I
cannot mute the game completely when I want to listen to something different
or like the game but hate its audio.

Regards,
Marcin Orlowski

*Tray Agenda <http://bit.ly/trayagenda>* - keep you daily schedule handy...
*Date In Tray* <http://bit.ly/dateintraypro> - current date at glance...
WebnetMobile on *Facebook <http://webnetmobile.com/fb/>* and
*Twitter<http://webnetmobile.com/twitter/>
*

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

Reply via email to