×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Feb 2013
    Posts
    3

    Calling UI from Background Service Windows Phone 7.1

    Pls suggest solutions for the query. pls suggest available options.
    thanks in advance.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2011
    Location
    Portugal
    Posts
    950

    Re: Calling UI from Background Service Windows Phone 7.1

    Quote Originally Posted by Ramprawesh View Post
    Pls suggest solutions for the query. pls suggest available options.
    thanks in advance.
    Your background process cant directly interact with other apps or directly with the UI. The only way you can interact with the user in some way is for example to change the App tile or issue a Toast Notification. If you let us know what you are trying to accomplish it may be easier to help

  3. #3
    Registered User
    Join Date
    Feb 2013
    Posts
    3

    Re: Calling UI from Background Service Windows Phone 7.1

    Sir ,I'm getting xml(that contains list of questions with their time attribute) from my web service. In OnInvoke method I'm calling the service.Service is called at every 11:00 am.After getting the list of questions in the returned xml i Need to show them on the UI(that has 2 or more controls in it).Questions will be shown at their specified times.Directly UI should be called 'No Toast ,Tile etc should be clicked' .If it's posible then how
    Pls suggest- Provide some solutions.
    thanks.

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,699

    Re: Calling UI from Background Service Windows Phone 7.1

    An interesting detail is that the list of unsupported API-s (http://msdn.microsoft.com/en-us/libr...(v=vs.92).aspx) does not explicitly disable UI creation attempts.
    However
    Directly UI should be called 'No Toast ,Tile etc should be clicked'
    is not possible on Windows Phone. If the application is switched to the background or not running at all, the background agent will not be able to bring it to the foreground.

  5. #5
    Nokia Developer Champion
    Join Date
    Apr 2012
    Posts
    21

    Re: Calling UI from Background Service Windows Phone 7.1

    The only way to achieve it is through
    Steps:
    1. If(UseToastNotification)
    {
    2. If(UserSelectToast)
    {
    //Your UI will be invoked.
    3. //Do you logic.
    }
    4. else
    {
    //Show Notification count (Message) on your application Tile
    }
    }
    else
    {
    //Can't achieve it. Like other user mentioned in this thread
    }
    Thanks and Regards
    Nishant Rana

Similar Threads

  1. Got error on adding php web service in windows phone 7
    By WS7Dev in forum Windows Phone General
    Replies: 4
    Last Post: 2012-11-05, 13:59
  2. SOAP web service request with credentials for Windows Phone 7
    By sreerajvr in forum Windows Phone General
    Replies: 16
    Last Post: 2012-04-03, 10:17
  3. Dealing with Background Tasks: Android Honeycomb and Windows Phone Mango
    By vuorinen.juuso in forum Windows Phone General
    Replies: 1
    Last Post: 2012-01-02, 10:15
  4. Connect to phone from windows service
    By stealth117 in forum PC Suite API and PC Connectivity SDK
    Replies: 4
    Last Post: 2008-09-27, 19:32
  5. No Phone Connected in Windows Service
    By windsocks in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2006-01-03, 10:02

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×