0

I am developing an application that needs to retrieve some data from a web server. But I have no idea how can this be possible?

MysticMagicϡ
  • 27,509
  • 15
  • 68
  • 114
Hamid
  • 22
  • 5
  • 1
    http://stackoverflow.com/questions/297586/how-to-call-web-service-with-android – Ritwik Bose Jan 06 '10 at 02:08
  • Wow, where to start? Do you have a phone? which phone do you have? Do you have experience programming in Java? Have you looked at the Android SDK? Are you having problems with your server? What data are you trying to work with? Give us *something* to answer. – jsoverson Jan 06 '10 at 02:13
  • I have some experience in Java programming. I have started the app, I even built the UI. I have a web server with PHP and MySQL. – Hamid Jan 06 '10 at 02:17
  • Just search this site; there are many similar Android + HTTP questions already asked and answered. – Christopher Orr Jan 06 '10 at 02:51

1 Answers1

0

You need to create what is called a web service. This web service acts as a web page that can be read easily by machines. This page will let your program make HTTP posts and gets (Just like a web browser) in order to request and receive information. You can look at this page for the Google Maps API to see an example of how it works.

For the protocol that you use to communicate, you have many options. Among the most popular are JSON and XML.

To create the web service itself you have a multitude of options. It seems to be Java Servlet s and PHP are popular, but there are many others (ASP, Perl, Python ...).

Frank
  • 1,398
  • 1
  • 12
  • 14