-1

I am a beginner to android and have designed a login GUI for app where a user will enter the login details. After fetching login details in java code (in strings) how can I pass it to server to check for a valid combination? Also when a new user enter registration details how can I pass it to server and store it in DB (MySQL DB)? What is the purpose of web service? Should I use web service or servlets (this is not the only thing later in my app I need to send contact details to/from server)? I've read about SOAP and REST web services which one should I prefer? I would like to code in java for everything. Should (or can) I use Google AppEngine for server part? Am I supposed to create XML file of login details to send it to web service in case I use it? A sample code could be of great help... Thanks in advance.

Saurabh Agrawal
  • 1,355
  • 3
  • 17
  • 33
  • 2
    Try separating your statements into blocks, its far easier to read. – JoxTraex Jan 22 '12 at 20:01
  • What you are asking here is far too broad and wide-ranging for SO. You're essentially asking us to design an entire system for you. Try submitting targeted and well-scoped questions and you'll get better responses. – tomato Jan 22 '12 at 20:12

2 Answers2

4

Web Services are used for passing and performing operations in databases of remote servers. You can use JSON type for parsing data & sending data to server.

Take a look at this link

aacanakin
  • 2,844
  • 4
  • 25
  • 42
1

you can't connect to remote mysql database directly in android. You have to do this via HttpClient.

Okan Kocyigit
  • 13,203
  • 18
  • 70
  • 129