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
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.
Cheers
João Cardoso
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
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.