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", "99xxxxxxxxxxxxxxxxxxxxxxxxxxxxxd**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=t&source=web&cd=2&ved=0CCQQFjAB&url=http%3A%2F%2Fwww.hut.edu.vn%2Fweb%2Fen%2Fhome%3Bjsessionid%3D9418B4B925AE17FAD70908946180BE85&ei=kAuaTLf3A8LBcZqMgdoH&usg=AFQjCNEPs2jwxh5k8qwtq-zql1D7y4EWPA&sig2=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