×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Jul 2012
    Posts
    2

    App as a service

    Hi

    I need to develop an app which run in the background as a service.
    Is it possible if yes please post some code :-)

    Thanks in advance

  2. #2

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2011
    Location
    Portugal
    Posts
    960

    Re: App as a service

    Quote Originally Posted by joki75 View Post
    Hi

    I need to develop an app which run in the background as a service.
    Is it possible if yes please post some code :-)

    Thanks in advance
    Take a look at the links Petrib mentioned.

    Let me just add that the type of background tasks you can do on Windows Phone are limited not only on the time it takes a task to complete but also the frequency its run is not controlled by you.

    If you need to run something that takes some time to run (over a few seconds) and that needs to run on a specific time interval, then I would advise to create a service running on a server (your own server or Azure for example) and then use the Notifications Services to inform the user. You can also create a Windows Phone app that connects to your services and collects data that you may need to show the user. You will need to have a data Connection to receive Notifications or to access the remote Services. Either by WiFi or 3g/4g.

  4. #4
    Nokia Developer Champion
    Join Date
    Jun 2012
    Posts
    5

    Re: App as a service

    There is 2 kinds of background agent with windows phone 7.

    Background Agent : each 30 minutes, the agent runs during 15 seconds

    Ressource Intensive Agent : no limitation but your phone need to be plugged and with Wifi

    This is all


    Rudy

  5. #5
    Registered User
    Join Date
    Jan 2009
    Location
    Melbourne, Australia
    Posts
    2,571

    Re: App as a service

    Quote Originally Posted by rudyhuyn View Post
    There is 2 kinds of background agent with windows phone 7.

    Background Agent : each 30 minutes, the agent runs during 15 seconds

    Ressource Intensive Agent : no limitation but your phone need to be plugged and with Wifi

    This is all


    Rudy
    And as a final note, I believe not all agents work on the WP7 devices with lower RAM etc.

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,751

    Re: App as a service

    This thread is almost 2 months old. Petrib gave the relevant MSDN link already, 7 minutes after posting. That page indeed starts with "Caution: Background agents are not supported on 256-MB devices. [...]", and discusses the two types of background agents.
    Please check the existing answers carefully when posting into old discussions.

  7. #7
    Registered User
    Join Date
    Jan 2009
    Location
    Melbourne, Australia
    Posts
    2,571

    Re: App as a service

    Quote Originally Posted by wizard_hu_ View Post
    Please check the existing answers carefully when posting into old discussions.
    Sure. Didn't realise it was an old discussion - just responded with addition to Rudyhuyn's.

Similar Threads

  1. Bluetooth midlet client to find a service by service name?
    By madsum in forum Mobile Java Networking & Messaging & Security
    Replies: 12
    Last Post: 2011-10-20, 09:49
  2. Service Framework can't find service plugins
    By chenpeiwen in forum [Archived] Qt Mobility Project
    Replies: 1
    Last Post: 2010-03-10, 07:34
  3. Why the Chinese Service DON'T supply the service for my nokia 5800
    By fly2mars in forum Feedback - Nokia Developer Services & Infrastructure
    Replies: 3
    Last Post: 2009-05-26, 22:21

Posting Permissions

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