¿Cómo guardar el proceso en segundo plano obteniendo valores en arraylist en Windows Phone 7?

I wrote background process getting details like this.

 public static List<string> myCollection=new List<string>();
 public static string result=null;
protected override void OnInvoke(ScheduledTask task)
     string toastMessage= "Application Memory Usage:" + ((Microsoft.Phone.Info.DeviceStatus.ApplicationCurrentMemoryUsage)).ToString();

    foreach (string item in myCollection)
       result += item.ToString() + ", ";

i am getting only latest value in result varieable.But i want to save all usage values.Please tell me ..I want to update these details to server for every one hour.

preguntado el 31 de julio de 12 a las 09:07

1 Respuestas

The background process runs for few seconds only, that's why result isn't preserved. The solution: At the first line of OnInvoke load result from IsolatedStorage, on the last line of OnInvoke save result to IsolatedStorage.

Respondido 01 ago 12, 10:08

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.