Hi I am using async to get message back from web service and in the methos dealing with the returned msg from the web service i need to show a message. I realise due to thread i cannot update UI. I am new to this in c# so any advice would be helpful here is my method
private void ServerReturned(IAsyncResult ar) { try { JobTrackerWS.JobTracker testConn = (JobTrackerWS.JobTracker)ar.AsyncState; string AsyncRetVal = testConn.EndTestConnection(ar); if (AsyncRetVal == "OK") { Toast.MakeText(this, "Connection Successful", ToastLength.Long).Show(); } else { Toast.MakeText(this, "Connection Failed ", ToastLength.Long).Show(); } } catch (Exception ex) { Toast.MakeText(this, "ServerReturned " + ex.Message, ToastLength.Long).Show(); } } TIA -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Async-and-the-UI-tp5711015.html Sent from the Mono for Android mailing list archive at Nabble.com. _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid