Questions tagged [background-agents]

Background agents are a facility in Windows Phone 7/8 API that lets you run some processing when your application is not in the foreground.

Background agents are a facility in Windows Phone 7/8 that lets you run code when your application is not in the foreground.

http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202942(v=vs.105).aspx

92 questions
0
votes
0 answers

Is it Possible to load the BackGroundAgent dynamically and make it work?

I have a Window phone 8 app and I need to have a BackGroundAgent for this app. I know that we can simply add the reference of background agent project in the main app and it works fine. but I want to load it dynamically in Main app through…
harshbodhi
  • 99
  • 9
0
votes
1 answer

Different result testing using device and device running itself in Windows Phone

I develop an application that running in the background. What I trying to do is the app running in background with time interval. When i testing the application with device (connect cable with computer), the application successfully running in…
likewer
  • 216
  • 3
  • 16
0
votes
1 answer

Is it possible to access Windows.Devices.Sensors API from a background agent?

There is a list of unsupported APIs for background agents, such as Microsoft.Devices.Sensors. The sensors are also accessible through the runtime API Windows.Devices.Sensors, which is not in the list of unsupported APIs. Can they be used from a…
Markus
  • 528
  • 1
  • 5
  • 10
0
votes
2 answers

How to make a synchronous web call from within a background agent

I am fairly new to wp7 development, and currently developing an app that has a background agent to update values based upon responses it gets from a web call to an api. My problem is that the response to the web call is an asynchronous call and I…
0
votes
1 answer

How to debug background location agents in Windows Phone 8

I'm currently developing an app where the device's location should be send to a server. I've worked through the MSDN articles on the background agents and accessing the location. This works so far. My location is transmitted to the server when I've…
0
votes
1 answer

Invoke background agent periodically in wp7

I am working on windows phone app. In this app I want to start OnInvoke() method of background agent daily at 9 A.M. and want to stop it at 6 P.M automatically daily. How can I do it?
Ritesh Gupta
  • 171
  • 1
  • 2
  • 19
0
votes
1 answer

Background Agent daily scheduling on time basis

I am working on app in Window Phone.In this app i am using background agent for running background task.Further more i want that this background agent should start at 9 A.M. and should over at 6 P.M. daily automatically. How can i do it?
Ritesh Gupta
  • 171
  • 1
  • 2
  • 19
0
votes
2 answers

Window Phone circular dependency

I am working on window phone app.In it i have added another new project that is Schedule Agent that work in background.I have added reference of agent in foreground but when i am adding reference of foreground in agent it gives message about…
Ritesh Gupta
  • 171
  • 1
  • 2
  • 19
0
votes
2 answers

Windows Phone Resource Intensive Task exiting

I'm writing a Windows Phone application, and it needs to download very large mp3 files, and save them to isolated storage. I've got all the code for this working, and I tested it with smaller files, but now using the actual files and monitoring what…
0
votes
1 answer

What is the best way to manage data in my Windows Phone application, given the lack of a service?

I have some data that I use to populate the textboxes in my windows phone app, and update live tiles and such. However, I have had to employ a background agent to help with my app, since it needs to be updated every hour, on the hour. I cannot…
Freakishly
  • 1,533
  • 5
  • 32
  • 61
0
votes
3 answers

Windows Phone background agent Microsoft.Phone.dll submission issue

I am trying to submit an app to the app hub, whick is using a backgound agent to update the app tile. the background agent requires to use the Microsoft.Phone.dll, but when I submit the app i get the following errors 2011: The background agent…
0
votes
1 answer

Launching a background agent from within the app

As far as I have understood, if you register a periodic task to deal with your WP7 live tiles, it will not update more than once every half hour. However, I would like to update the data the background agent works on every time the user exits the…
Kris Selbekk
  • 7,438
  • 7
  • 46
  • 73
0
votes
2 answers

WP7 BackgroundAgent will not start

I'm facing a wierd problem with my scheduled agent. I created it some weeks ago and it worked on my phone, I tested it and everything was all right. But today I modified it, recompiled, deployed and... it didn't start. I added LaunchForTest, tried…
gjulianm
  • 834
  • 7
  • 22
0
votes
1 answer

Building long-life background agent (more than 2 weeks) in WP7

I need long-term working background agent in wp7. I know that default and maximum life-cycle for such agents is 2 weeks. Also i got situation, when battery is critical low, all background agents are turning off. So now i see only two workaround…
-1
votes
1 answer

WP7 Streaming HTTP audio

Trying to use the BackgroundAudioAgent just like a previous post: How do I stream an MP3 over HTTP in the background? The answer says to just put the radioreference.relay.com URL in an AudioTrack object. Here's my code: // A playlist made up…