Click here to Skip to main content
15,745,574 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an application that display what notes that user's have pinned to display today, and all my data saved to a server,

I tried to use ShellTileSchedule, but it does not let me update with custom code (eg: cannot use connection to server).

Later I found ScheduledTaskAgent, it was great for running at background. But for some reason, when I debug it, it crashed. When i remove package and remove all code and insert testing code, it doesn't crash. I think it might due to package, ScheduledTaskAgent doesn't support it.

I wanted to update my application tile with network connection. has REST API, is there anyway to do it?

I'm Running Express Visual Studio 2013 for Windows, developing Windows Phone 8 Application

1 solution

There could be a problem the way you download data using ScheduledTaskAgent.

ScheduledTaskAgent works on a background thread.
So if you are using WebClient to download data on this thread, there will be errors.
You have to use HttpWebRequest.
Share this answer
Member 11800125 29-Jun-15 9:52am    
I don't know if they use WebClient or HttpWebRequest on the package, do I have to create my own GetData Class for it?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900