Reputation: 1528
For learning purposes, I'm making an android app which will have to exchange data with a server Now, I'm familiar with Android programming so that is not a problem. The problem is that I have never set up a server and exchanged data with an app through that server.
The following is the requirement:
The following is what I have thought of, till now:
Questions:
I'll be really thankful if somebody can answer my questions. I'm a complete newbie at this. Thank you :)
Upvotes: 1
Views: 3860
Reputation:
You have the right idea, however you are more likely to wish to pass data to your server via POST or GET requests than as XML. You can pass values and arrays via these methods and it won't require the effort of parsing the XML with xpath or something similar.
Returning data to the mobile device, you could use XML, however JSON is currently the format of choice for API's.
PHP is a suitable language, other possibilities include ruby on rails, asp.net, python etc. (Lots of options).
Recieving GET/POST requests and transferring data to a database/flatfile should be fairly straight forward using the core libraries of the language used.
Yes
Decide how your going to store the data server side, if your using a database you will need to set that up and do a bit of research into SQL, if you can't get access to an SQL server, you have the options of SQLITE (the database is stored in a portable file) or using flatfiles.
Upvotes: 3
Reputation: 13965
Since this is an android question, why not simply use app engine to create an appengine connected android (ACA)? https://developers.google.com/eclipse/docs/endpoints-androidconnected-gae
Also you can use GCM which is easy to implement http://developer.android.com/google/gcm/index.html (since the default ACA project comes with it pre-implemented)
Upvotes: 0