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

Windows Phone Background Agent Memory Limit

I have a Windows Phone background agent that I am debugging using the Emulator 720P which is supposed to have 1GB of Memory. According to this article, the agent on such a device can use up to 20MB of…
alitaleg
  • 165
  • 2
  • 11
0
votes
1 answer

How to Get Phone Contacts in Background Agent WP7

i am trying to sync the contacts to server after every 24 hours . so for that purpose I am using background agent. when I try to call contacts it does not get the contacts of the phone . my code is here ... protected override void…
0
votes
1 answer

How to debug Stackoverflow Exception on a Win8 background task

I have a Windows Store 8.1 App where the background task throws a Stackoverflow Exception before it completes. The task uses Reactive Extensions and a third party library. I have tried debugging through the agent, but I cannot find the location…
alitaleg
  • 165
  • 2
  • 11
0
votes
0 answers

Debugging a Background Agent: OutOfMemoryException

I've got a background agent that, from what I see in my logs, doesn't complete its execution because it's blocked on an async Task. Of course, to understand why it's blocked, I need to debug it using Visual Studio. The problem is that, if I use the…
StepTNT
  • 3,867
  • 7
  • 41
  • 82
0
votes
1 answer

Wp8 Background Agent Image

I have been working on a application. This app running in the background and I wanna to see some image about this app. Like this How can I search or how can I do that I don't know. I hope I can explain. Thanks all replies.
BerdaN
  • 49
  • 1
  • 9
0
votes
2 answers

FileNotFoundException when running a PeriodicTask

I'm trying to use a PeriodicTask in my app, but it fails before calling the OnInvoke() method with this exception System.IO.FileNotFoundException Could not load file or assembly 'LockscreenAgent, Culture=neutral, PublicKeyToken=null' or one of its…
StepTNT
  • 3,867
  • 7
  • 41
  • 82
0
votes
1 answer

Is it possible to run background transfer from background audio agent?

I want to run Background file transfer from Background audio agent but I get error with example code which runs correct in foreground app. Here is example: string transferFileName = @"http://www.reggaeavenue.com/MP3/leave%20short.mp3"; Uri…
0
votes
1 answer

Windows phone background agent ShellTile can't be added

I'm using this code to push notifications: protected override void OnInvoke(ScheduledTask task) { //TODO: Add code to perform your task in background string toastMessage = "Periodic task running."; …
Ibraheem Al-Saady
  • 854
  • 3
  • 14
  • 30
0
votes
1 answer

Windows Phone 8: Using a remote uri for MediaHistoryItem ImageSource

Every sample I've seen for updating the historyitem in a Windows Phone 8 Media Hub app shows using a local image/uri for displaying the background of the item. However, I am streaming the file, and I have a remote URI for that song cover, but I…
SelAromDotNet
  • 4,715
  • 5
  • 37
  • 59
0
votes
0 answers

how ot make background agent to check for new feeds

I want to make the background agent in my Windows Phone app check for new feeds in the background, i use webclient to download them and i display them in an listbox i use an webbrowser control to display the selected feed to the page it comes from…
0
votes
2 answers

WP Run periodictask every 5 minute

I've made an WP app, that checks in-game events of Guild Wars two. Looking up, MSDN states that the task will be run every 30 minute. Thing is, at 30 minute, an event might already be over, is there away to make it run 5 minute, or an…
Jazerix
  • 4,729
  • 10
  • 39
  • 71
0
votes
1 answer

Send httpwebrequest in Schedule/Background Agent

I am trying to send a http web request from a background agent. The code is as below. The json_Callback never gets triggered and my request doesn't reach the server. I have done all the exception handling and none of them get triggered. How to send…
0
votes
1 answer

Scheduled task agent wp7 soap client does not work

I have this: public class ScheduledAgent : ScheduledTaskAgent { ... protected override void OnInvoke(ScheduledTask task) { var userSettings = Utils.LoadSettings(); try { var client = new…
Nodir
  • 359
  • 1
  • 3
  • 17
0
votes
1 answer

Invalid cross-thread access raised in background agent

I am building an RSS Reader and I want to add a periodic task that will check for new feed items. If it finds any new items, it will update the Live Tile of the app accordingly. The problem that I encounter is that I am using the…
0
votes
1 answer

Windows Phone Periodic Task Restriction

Restriction of Periodic Task for Windows Phone 8 I am trying to make the app which it is using to check webservice value in the background based on the interval timer that set by user. I know the restriction of periodic task is minimal 30 minutes…
user2477457
  • 383
  • 1
  • 3
  • 4