xamarin.ios - Moving from monotouch to monodroid - async and threading porting -


I have a small iOS app that wants to be on the monodide. The port is creating some issues, some of which are below two ways to go to the platform and go about creating classes around them.

There is such a code in the iOS app

  Private Zero BtnSomething_TouchUpInside (Object Sender, EventArgs e) {string f = this.foo; LGPM GPM = new LGPM (constant A, stable. B, F); This.auth = new ऑथ ("cheese", GPM); (*) This.auth.TokenReceived + = (O, E, A, ATS, R) => {// more stuff here}; This. Displayed Model Viewer Control (it.Auth, True); }   

The ath class looks like this

  public partial square proof {public at (string m, data d) {this.d = d; This.m = m; } // Create a UIWebView and work   

Display - Oath creates a webview, does things and gives (*) control back to the line

For Monodroid Things are different because you can not create a class like this. The best I have come up with

  Private Zero BtnSomething_TouchUpInside (Object Sender, EventArgs e) {string f = this.foo; LGPM GPM = new LGPM (constant A, stable. B, F); This.auth = new ऑथ ("cheese", GPM, context); (*) This.auth.TokenReceived + = (O, E, A, ATS, R) => {// more stuff here}; This. Displayed Model Viewer Control (it.Auth, True); }  
  public class at: application {public at (string m, data d, reference c) {this.d = d; This.m = m; Intent t = new intent (this, type (webview)); T. Put Extra ("Todo", 1); C.StartActivity (t); This is then a "normal" webview activity.  

It seems to work, however, once the control (*) does not return to the line, the webview has completed.

The webview itself is catching the asynchronous data from the website (called athocon), which once caused it to cause an event to be thrown out. I'm not sure how classes and activities are written between the two, but in the version of iOS, this event has been triggered, in the Android version, it is Miss.

This clue I would be surprised is that in the way the platforms are different, how they deal with ASCIC programs. What is the difference between such tutorials that how do two platforms deal with async events?

I know a lot of questions, but threading and async events are important.

thanks

thread after some processing event Use startActivityForResult or any other Android-ISM to get it.

Comments