Re: [android-developers] C# webclient in Android/Java
you need use KSOAP2 to do it Vào 15:16 Ngày 27 tháng 3 năm 2012, Brofalad hihans...@gmail.com đã viết: 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, 99xd**0307); 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *NGO HAI NAM **Hanoi University of Technology* *** *http://www.google.com.vn/url?sa=tsource=webcd=2ved=0CCQQFjABurl=http%3A%2F%2Fwww.hut.edu.vn%2Fweb%2Fen%2Fhome%3Bjsessionid%3D9418B4B925AE17FAD70908946180BE85ei=kAuaTLf3A8LBcZqMgdoHusg=AFQjCNEPs2jwxh5k8qwtq-zql1D7y4EWPAsig2=aMMwo80lB-gNU1JaNCEVQQ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] C# webclient in Android/Java
Use any Web Services concept and do it. SOAP or HTTPost !! On Wed, Mar 28, 2012 at 7:24 PM, hnlovefb hnlov...@gmail.com wrote: you need use KSOAP2 to do it Vào 15:16 Ngày 27 tháng 3 năm 2012, Brofalad hihans...@gmail.com đã viết: 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, 99xd**0307); 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *NGO HAI NAM **Hanoi University of Technology* *** *http://www.google.com.vn/url?sa=tsource=webcd=2ved=0CCQQFjABurl=http%3A%2F%2Fwww.hut.edu.vn%2Fweb%2Fen%2Fhome%3Bjsessionid%3D9418B4B925AE17FAD70908946180BE85ei=kAuaTLf3A8LBcZqMgdoHusg=AFQjCNEPs2jwxh5k8qwtq-zql1D7y4EWPAsig2=aMMwo80lB-gNU1JaNCEVQQ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thank you Anirudh Loya | Android Developer** Desk: +9140-30681824 | Mobile: +91*9246561265* *Love your Job but don't Love your company, Because you may not know when your company stops loving you.-- Voice Of Love* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] C# webclient in Android/Java
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, 99xd0307); var bytes = client.DownloadData(baseUrl + events?fromDate=2010-04-01toDate=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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en