I need to communicate a value between my foreground and background projects/tasks. Is there a shared/common folder where I could store values both can access? Or is it possible to pass an arg from the foreground task to the background task as it starts up? Or (what would be the easiest solution), do they both read/write from/to the same IsolatedStorage area? I doubt that, but perhaps when the foreground app references the background app, that commonality is made available?
Similarly, I want to update the badge on the foreground app's live tile; can I do this directly from the background task, or will I need to find a workaround, such as writing to a commonly accessible file, and then the foreground task periodically checks that file for update info?