background-agents

How to detect if the main app is running from a background agent

蓝咒 提交于 2020-01-16 08:54:48
问题 I'm working on a WP7.5 app where I use a background agent to update tiles in the background (when the app is not running). In the OnInvoke method of the agent, is there a way to know if the main app is currently running ? I'd like to detect that in order to NOT updating the tiles if the app is running because I already udpate them when the app exits. Thank you. 回答1: Your only choice is to write use isolated storage to communicate, since it's shared by both agent and application. Have the main

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

陌路散爱 提交于 2020-01-16 04:27:06
问题 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: public void writeStream(Stream writer, string filesource, string filename) { var store = System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForApplication(); var f = store.OpenFile(filesource, FileMode.Open, FileAccess.Read); store.Dispose()

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

主宰稳场 提交于 2020-01-11 09:36:10
问题 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 failed. According the the error log, if someone is already playing a Music from Music + Video hub and then tries to open this app, both of the apps Crash and stop unexpectedly. So far I understood, it is because the Music of Music + Video hub is also

How can you update location data in Windows Phone in the background?

我只是一个虾纸丫 提交于 2020-01-05 10:25:24
问题 I just read that while Windows Phone 7.5 background tasks can poll for a location, they don't actually poll real-time from the GPS but rather the location API calls return a system-cached position that's only updated once every fifteen minutes. That limitation of course completely invalidates any attempt at having navigation run in the background as you can get pretty damn far off-track in fifteen minutes, let alone that a background task can only run once every thirty minutes or so! That

Execute task even in the background [duplicate]

江枫思渺然 提交于 2020-01-02 09:11:53
问题 This question already has answers here : Closed 7 years ago . 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 background. The documentation points me to Background Agents because the Background Transfer Service "only supports transfers using HTTP and HTTPS. FTP is unsupported". I have been trying

Execute task even in the background [duplicate]

与世无争的帅哥 提交于 2020-01-02 09:11:44
问题 This question already has answers here : Closed 7 years ago . 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 background. The documentation points me to Background Agents because the Background Transfer Service "only supports transfers using HTTP and HTTPS. FTP is unsupported". I have been trying

Simultaneous Lotus notes server-side agents

和自甴很熟 提交于 2019-12-23 02:41:02
问题 In my Lotus Notes workflow application, I have a scheduled server agent (every five minutes). When user's act on a document, a server-side agent is also triggered (this agent modifies the said document, server-side). In the production, we are receiving many complaints that the processing are incomplete or sometimes not being processed at all. I checked the server configuration and found out that only 4 agents can run concurrently. Being a global application with over 50,000 users, the only

Background Agent in UWP

对着背影说爱祢 提交于 2019-12-13 07:13:27
问题 In Windows 8.1 and WP 8.1, there was a slight difference between the way Background Agent used to work: WinRT: In WinRT, in most cases the OS will not terminate the background agent when the background agent exhausts its quota. Instead it will simply suspend the agent and allow it to continue later. The suspension is done without any warning like an event being raised or callback called. The OS will not stop the background agent when it becomes idle (for example when waiting for a command to

WriteableBitmap or PNG writer memory leak?

元气小坏坏 提交于 2019-12-11 11:15:00
问题 I am building a small Windows Phone 8 app (a Christian-Orthodox calendar) which has a background agent which should update the live tile. The app will require access to the contacts in the phone so I opted out of internet access so backend tile generation is, at least now out of question. I personally would not trust an app that has access to my contacts AND to internet. Recently my scheduled agent (which generates three PNGs) started OutOfMemoryException-ing on me. Consistently. I've used

How to check from scheduled agent if the foreground app is running

て烟熏妆下的殇ゞ 提交于 2019-12-11 09:58:21
问题 Is it possible to check if the foreground app is running from a scheduled task? In my case, it duplicates a functionality of the app - so I could skip that part in the agent to preserve resources. Thanks 回答1: You cannot access a list of processes or anything similiar that would give you the info if your app is running. You can do smething like storing a flag to the settings when your app starts and erasing it when your app exists and check this flag in the background agent. 来源: https:/