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

Windows 10 - Background Agents/Services?

I'm writing a Windows 10 Universal Application, and got to the point where I would like to implement a background service (the application connects to a variety of Bluetooth LE devices, and the Notify characteristics would need to, obviously, notify…
fonix232
  • 2,132
  • 6
  • 39
  • 69
2
votes
1 answer

Windows phone 8.1 background timer to stop music

Hello as part of an app that plays relaxing music in the background using the BackgroundMediaPlayer, I would like to implement a way of turning off the music after a set time.. What I was thinking was to have a TimerPicker for the user to pick when…
2
votes
3 answers

WP8 Background Agent - Code executes fine outside of agent, fails inside?

I have a background agent I created to update my live tile. The agent schedules and executes fine, but the code that the agent executes has became the problem - it simply fails to execute fully and provides no error. From what I can tell, there are…
Kevin
  • 383
  • 2
  • 11
2
votes
1 answer

Retrieving Media Information from background audio stream in Windows Phone

I have a live mp3 stream that I am playing using the BackgroundAudioAgent and an AudioPlayerAgent. Since the feed is a mp3 stream I didn't see a reason to create a AudioStreamingAgent. The stream plays as expected. Is it possible to get track…
2
votes
2 answers

Execute task even in the background

Possible Duplicate: How to run application in background in Windows Phone? I am investigating Windows Phone 8 SKD for examples on how to create a task (FTP write to be precise) that would be executed periodically even if the application is in the…
MLProgrammer-CiM
  • 17,231
  • 5
  • 42
  • 75
2
votes
1 answer

Show application in foreground from a background agent

Is it possible to start an application in the foreground from the background agent? Or is it only possible to show toasts ? thx
Robby Smet
  • 4,649
  • 8
  • 61
  • 104
1
vote
2 answers

Posting file on Background Agent / HttpWebRequest stream buffer keeps growing?

I need to POST a 5MB file from within a ResourceIntensiveTask, where the OS sets a max memory usage of 5MB. So trying to stream the file directly from storage, but the Stream associated to the HttpWebRequest keeps growing in size. This is the code: …
1
vote
2 answers

AudioPlayerAgent Streaming - Stop doesnt delete the buffer

I'm currently developing a web radio app and if the user presses the pause/stop key the stream should stop and of course when he presses play again the stream should continue. The problem I have is, that player.Stop() only pauses the track. If you…
martinyyyy
  • 1,652
  • 3
  • 21
  • 44
1
vote
1 answer

Limitations for creating a security application on Windows Phone

I am actually trying to create an application for Window Phone that could create an alarm if a specific event happens : a security application that could create an alarm if the power cord is disconnected to inform the user that his phone has been…
lbilli
  • 13
  • 2
1
vote
2 answers

How to send GPS data to server every 5 minutes?

I am planning to write WP7 app, which needs to send to server phones GPS position every 5 minutes. Data must be sent to server even if app is not running. One way to do that is to use Background agents (I am using 7.5 Mango), but in that case app…
Samvel Siradeghyan
  • 3,523
  • 3
  • 30
  • 49
1
vote
1 answer

Using background agents on Windows Phone 8.1 to save user location after device reset

So, this is the problem that I'm trying to solve using background agents: I need to continue on logging the user location when he goes offline in background even after device reset (thing of a running app for context). To try and solve this I've…
Milos Maksimovic
  • 299
  • 2
  • 5
  • 17
1
vote
2 answers

Keep StreamSocketListener running in background on Windows Phone 8

I want to run a server on Windows Phone 8. It is important that the server keeps running even if the user opens another app or the screen lock turns on. Relying on an internet connection is not an option. It should work in a local network. UseCase:…
1
vote
0 answers

background Agent works fine in local environment but failed after app submission to app store

I have an wp8 app using PeriodicTask background Agent. The task update the information of multiple live tiles, using POST Client to get title and image url from my server to update the live tile. Background agent works just fine in debugging and…
superwave
  • 180
  • 1
  • 8
1
vote
1 answer

Create A background service in Windows phone 8 to update location

I have to create a Background Task which should run after every 1 minute and should call a Rest service to update the Mobile longitude and Latitude Location. The rest service for this purpose have been written all I have to do is to write a Task in…
Ahmad.Masood
  • 1,289
  • 3
  • 21
  • 40
1
vote
1 answer

Bug? Windows phone 8 Resource Intensive Task on release mode

My application is using the Auto-upload feature which allows using a Resource Intensive Task to upload pictures. If I use ScheduledActionService.LaunchForTest then it works fine, but when I erase this line of code, the resource intensive task never…