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
7
votes
1 answer

BitmapImage's ImageOpened event not fired in background agent

As in the title, the event is not fired when the code is executed in the BackgroundAgent while it works fine when I execute it in my main app. Here's my code: var background = new BitmapImage(new Uri(uri), UriKind.Absolute)){ CreateOptions =…
StepTNT
  • 3,867
  • 7
  • 41
  • 82
6
votes
3 answers

Timer in AudioPlaybackAgent

I have an Internet radio app that uses BackgroundAudioPlayer. I need a timer in the Audio Playback Agent that will update the track title of the currently playing track of the BAP that is pulled from the Internet radio station's API. Adding a…
4
votes
1 answer

Background task and writing to isolated storage

I'm struggeling with writing to the isolated storage in my background task. The reason for this is that in every run of the background task I'm downloadng data and I need to compare this data the next time the background task runs. If the data has…
John
  • 681
  • 1
  • 8
  • 20
4
votes
1 answer

Detect application launch from Universal Volume Control

I have an application, targeting mango devices, which plays music via a BackgroundAudioAgent. As such it integrates with the universal volume control (UVC). Is there a way to detect when the application is launched by tapping the artists details in…
4
votes
1 answer

Windows Phone 8 background agent only runs when using a debug build (seems to not be running on a release build)

This is a weird one. My Windows Phone 8 app's background agent seems to be updating absolutely fine throughout the day when I'm running a debug build. However, when I change to a release build, it either doesn't run at all or very infrequently. This…
4
votes
3 answers

Any Tips for getting Windows Phone 8 Resource Intensive Task to Run?

I have been trying to get a Resource-Intensive Task background agent to run in release mode after deploying to the phone for several days and have never seen it run. Has anyone got this to work outside of the debugger? How long did you have to wait…
Jeff Zickgraf
  • 177
  • 1
  • 12
4
votes
3 answers

How can I profile the memory usage in a wp7.1 background agent?

I'm working on a scheduled background agent for Mango (7.1) I've managed to cut my memory usage down from 10.5MB to 6.5MB using manual trace techniques based on DeviceStatus.ApplicationPeakMemoryUsage along with some intelligent guesswork about what…
Stuart
  • 66,722
  • 7
  • 114
  • 165
3
votes
1 answer

Resize image for Live Tile - WriteableBitmapEx

** Found the solution Because of the fact this is a tile, the image will always be strechted to 173 by 173! To avoid this first create a dummy 173 by 173 and merge this with the resized one! Rect rect = new Rect(0.0, 0.0, width,…
Depechie
  • 6,102
  • 24
  • 46
3
votes
1 answer

WP7 Calling NotifyComplete() after 25 seconds on a PeriodicTask

I'm trying to understand why the NotifyComplete() method gets called even after the 25 second limit for a periodic task execution. I understand that if notifyComplete() is not called befere 25 seconds, the task is killed, but this is not what is…
blackjid
  • 1,571
  • 16
  • 23
3
votes
1 answer

Windows Phone 8 - 2 Background Audios Clash and both of the App terminates

around a week ago, I submitted an online Background Radio Streaming app for the Windows Phone store. The app was quite good (as I used the Emulator to test it, it was good on all the possible sectors) but when I submitted it for certification, it…
3
votes
1 answer

Windows Phone - update live tile from background agent with custom image

I am trying to add cloud image to album cover if the cover is loaded from internet. I am trying to do this in Background Audio agent and I think I almost got it. The problem is that I have black image in tile. Few times when testing I got cover…
3
votes
1 answer

WP8 application running in background

I'm trying to learn how to create an application on Windows Phone 8. I followed this tutorial published on msdn. The problem is that this code doesn't work,and i don't know why. I tried to debug it. So far, i found that the problem is…
limon
  • 3,222
  • 5
  • 35
  • 52
2
votes
1 answer

Background task and duration (Windows Phone 7)

I've read a lot of different values for how long a background task can run. Everything from 15 to 30 seconds. MSDN writes 25 seconds. Does anyone know what the value is for sure? If the value is 25 seconds does it mean that I have 25 seconds to…
John
  • 681
  • 1
  • 8
  • 20
2
votes
2 answers

How to switch from foreground application to background agent?

I'd like to know if it is possible to switch from foreground app to background agent and vice-versa sharing some data from these two tasks? More in deep I'd like to do an upload that starts from foreground (Fig. A) and when the user pushes back…
LXG
  • 1,957
  • 3
  • 22
  • 45
2
votes
1 answer

Problem with re-enabling disabled Background Agents on Windows Phone 7 Mango

I'm working on Windows Phone 7 application using a background-agent to update a Live Tile. The problem I've ran into has to do with disabling and re-enabling the background-agent. Users has the ability to disable background-agents for a specific…
Jonas Follesø
  • 6,441
  • 7
  • 41
  • 54
1
2 3 4 5 6 7