Hi,
I'm trying to grab files from a server using this code but it dies.
Any ideas why?
public void grabAFile(string url, Context c)
{
WebClient webClient = new WebClient();
webClient.DownloadFileCompleted += delegate(object s,
AsyncCompletedEventArgs e) { Completed(s, e, c); };
webClient.DownloadFileAsync(new System.Uri(url),
Android.OS.Environment.ExternalStorageDirectory + "/OQHRA");
}
private void Completed(object sender, AsyncCompletedEventArgs
e, Context c)
{
Toast.MakeText(c, "Download completed. Saved to your SD
Card", ToastLength.Long).Show();
}
Save to external is set in the manifest.
Thanks
Paul
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid