Hi,

I have this example code in C#, but I what to use Android/Java

C#/.NET
var baseUrl = 
"*https://eventor.orientering.se/api/*<https://eventor.orientering.se/api/>
";
var client = new System.Net.WebClient();
client.Headers.Add("ApiKey", "99xxxxxxxxxxxxxxxxxxxxxxxxxxxxxd0307");
var bytes = client.DownloadData(baseUrl +
"events?fromDate=2010-04-01&toDate=2010-04-30");
var responseString = System.Text.Encoding.UTF8.GetString(bytes);

How do I convert this to Java?

//Brofalad

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to