Databinding a ListView with Mono for Android: Listing 1

Making a Twitter request.

string twitterSearch = Intent.GetStringExtra("TwitterSearch");
string Url = "" + twitterSearch;
    // Create the web request
    HttpWebRequest request = WebRequest.Create(Url) as HttpWebRequest;

    request.Method = "GET";
    request.ContentType = "application/json";
    request.BeginGetResponse(new AsyncCallback(ProcessRestJsonLINQHttpResponse), request);
catch (WebException we)
    Android.Util.Log.Error("http request", "Exception: " + we.Message);
catch (System.Exception sysExc)
    Android.Util.Log.Error("http request", "Exception: " + sysExc.Message);

About the Author

Wallace (Wally) B. McClure has authored books on iPhone programming with Mono/Monotouch, Android programming with Mono for Android, application architecture, ADO.NET, SQL Server and AJAX. He's a Microsoft MVP, an ASPInsider and a partner at Scalable Development Inc. He maintains a blog, and can be followed on Twitter.

comments powered by Disqus


Subscribe on YouTube