[mono-android] TaskScheduler.FromCurrentSynchronizationContext()

Wally McClure theevilprogrammer at hotmail.com
Mon Nov 14 10:09:40 EST 2011


I've always used RunOnUIThread to write to the UI from a background thread.  Try it and see if that works.
BTW, I realize that you are trying to use something else, just trying to help out.  :-)
Wally

> Date: Mon, 14 Nov 2011 04:51:01 -0800
> From: andi.falk at gmx.de
> To: monodroid at lists.ximian.com
> Subject: [mono-android] TaskScheduler.FromCurrentSynchronizationContext()
> 
> Hi folks,
> 
> I am trying to use the the SynchronizationContext in order to synchronize
> background threads with the UI thread. There are a couple of similar
> examples (cf. 
> http://reedcopsey.com/2009/11/17/synchronizing-net-4-tasks-with-the-ui-thread/
> link ) like this working with WPF and Winforms (here I use m4a):
> 
> 
> 
> Unfortunately, it does not work. The actions, which have to run on the UI
> thread running on background threads and the button text is not updated.
> 
> Have anyone an idea?
> 
> Best
> andi
> 
> --
> View this message in context: http://mono-for-android.1047100.n5.nabble.com/TaskScheduler-FromCurrentSynchronizationContext-tp4990662p4990662.html
> Sent from the Mono for Android mailing list archive at Nabble.com.
> _______________________________________________
> Monodroid mailing list
> Monodroid at lists.ximian.com
> 
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodroid/attachments/20111114/0b9455a9/attachment.html 


More information about the Monodroid mailing list