Hi,

I keep on my training over mono and I have a new issue.
I need to update the text within a textview from a thread.
In .net I woul do a delegate, and i woul use the Invoke method, but here i
can´t use that way, i have been looking but I did´t get the way.

Thing with monodroid is that you need to remember that things can get messy quickly on threads.

Typically to update the UI thread, you need to call it so

RunOnUiThread(()=>textView.Text = "new text"));

should do it. Unless it's urgent, I'd wait until the thread has returned and then update the UI thread or you can end up in a bit of a mess!

HTH

Paul

--
"Space," it says, "is big. Really big. You just won't believe how vastly, hugely, mindbogglingly big it is. I mean, you may think it's a long way down the road to the chemist's, but that's just peanuts to space, listen..."
Hitch Hikers Guide to the Galaxy, a truly remarkable book!

_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to