SaravanaKumar
SaravanaKumar

Reputation: 757

Detecting Background Process In Windows Phone 8?

In window Phone 8.

While Music Player is running I just want to run the game.

On that time Game should show some popup.

Like Background Music process is running do you want to continue or stop.

or else Stop the background music of the game.

How could i do that??

Upvotes: 0

Views: 319

Answers (1)

Oren
Oren

Reputation: 3248

From managed you can use MediaPlayer.GameHasControl from the Microsoft.Xna.Framework.Media.MediaPlayer.GameHasControl library: http://blogs.msdn.com/b/oren/archive/2010/12/02/wp7-dev-tip-detecting-whether-or-not-the-user-is-playing-music-in-the-background.aspx

Upvotes: 1

Related Questions