...@lists.ximian.com
[mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Bozo Ivkovic
Sent: 06 June 2011 08:57
To: Discussions related to Mono for Android
Subject: Re: [mono-android] WebClient.DownloadFileAsync - unreliable on 3.0
If you're using multithreading for UI synchronization, i.e
If you're using multithreading for UI synchronization, i.e. for displaying
progressbar of download status, consider reducing the number of UI refresh
events on the UI thread. We discovered that MD has occasional crashes(non
catchable) if you are synchronizing UI thread in very short time intervals,
webclient (on ios) uses sockets, and I'd assume the droid version is
the same. this usually bypasses the internal "keep the WAN up" stuff,
so you might need to use something else to keep it working. Maybe ping
a website with whatever the android sdk provides, and hence keep the
WAN going
On
I'm currently downloading 50~100Mb ZIP files in my Monodroid app.
Using WebClient.DownloadFileAsync().
The code works fine ~100% of the time in MonoTouch on iOS. It even worked
pretty reliably on an older Android device (Galaxy Tab 7" with 2.2 i think),
although it did sometimes fail.
BUT on a S