Results 1 to 5 of 5

Thread: Pause game during a phone call IN windows phone 7?

  1. #1
    Join Date
    Sep 2010
    Posts
    78

    Pause game during a phone call IN windows phone 7?

    Hello,I have a silverlight game that utilize a timer. I have to be capable to pause the game when the consumers allow receiving a phone call or somewhat besides out of managing. It appears there are 2 proceedings that are attractive:
    • WindowsPhoneEvents.Pause and
    • WindowsPhoneEvents.Resume.

    Is it definite that I can utilize these proceedings to handle the scenario out of the range of my function? Hope this makes sense.

  2. #2
    Join Date
    Nov 2009
    Posts
    1,977

    Re: Pause game during a phone call IN windows phone 7?

    When the phone call reaches your destination, your app will accept the Pause occurrence. In your handler for this occasion, you should keep sufficient information regarding your app situation to be capable to repair the app to that situation in case the app is finished while it is in the backdrop. When the phone call finishes and your app are convey back to the forefront, your app will accept the Resume incident. If the app was not finished, you can restart the game in the restart event handler. If your app was finished, the consumer may have to resume your app, in which container your app should load the keep app state and repair your app to that condition.

  3. #3
    Join Date
    Jan 2009
    Posts
    721

    Re: Pause game during a phone call IN windows phone 7?

    Well that would on top form of a Silverlight app model, but how does this influence XNA apps? The webcasts up to date on this "Pause" model appear a small light and the on-line assist still isn't that obvious. So a few ideas how this can be useful on both Silverlight and XNA and is there a stay to reproduce this in the emulator.Are we talking on something that is creating the issue the event to test. Can anybody help me? A good answer would be appreciated.

  4. #4
    Join Date
    May 2009
    Posts
    677

    Re: Pause game during a phone call IN windows phone 7?

    A Silverlight app isn't being completed when a phone call comes up to in as I understand it. So the SL app doesn't go away into gravestone mode and application neutralize doesn't find called. The app is in fact being paused and is still in memory. The similar articles occur if you initiate a phonecalltask. I was a bit surprised the first time I saw this because in my consideration all tasks drive your app into gravestone mode. I think it might be possible to notice from inside your App if a phone call is being received is something being lift up. I think this will help you to get the desired solution. Try doing this.
    Last edited by Brooks; 27-10-2010 at 06:27 AM.

  5. #5
    Join Date
    Nov 2009
    Posts
    3,331

    Re: Pause game during a phone call IN windows phone 7?

    I am not a specialist on XNA but I suppose they control both the partial-screen obscured announcement and the tombstoning announcement to the Game.Deactivated incident, so you only have one position to switch it mainly the same logic: pause the game. This is dissimilar from the PhoneApplicationService.Deactivated event, which let off for together Silverlight and XNA when the app is being tombstoned. The cause Obscured or Unobscured are not enthusiastic up in App.Xaml.cs is to the huge majority of non-game applications will not require to make use of these events. I think this may help you to solve your problem. If not satisfied with the answer you can also search the Microsoft website.

Similar Threads

  1. Need Call Blocker for Samsung Windows Phone 7
    By Moli in forum Portable Devices
    Replies: 3
    Last Post: 23-08-2013, 10:46 AM
  2. Windows Phone 8 screen stops working during phone call
    By MEKHALA in forum Portable Devices
    Replies: 1
    Last Post: 01-08-2013, 01:21 PM
  3. Mango phone display remain black during the phone call
    By Garsen's in forum Portable Devices
    Replies: 3
    Last Post: 02-11-2011, 06:01 AM
  4. How to put a 2 sec pause into the phone number in Skype?
    By Jaromierz in forum Technology & Internet
    Replies: 6
    Last Post: 23-06-2011, 10:45 PM
  5. Pause game during a phone call
    By Zyrren in forum Portable Devices
    Replies: 3
    Last Post: 26-10-2010, 08:14 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,718,727,104.03722 seconds with 16 queries