Reputation: 163
Hey, So I'm trying to develop an App that will take the users ID and Password and then log onto a site in the background and tranfer the users contacts from the phone to the site. I'm doing this for my final year project in college. I'm new to this and have been completely lost since developing the GUI. Is there a particular library I should look at or a name for what I am trying to do that I could look for tutorials on? Any help would be greatly appreciated. Thanks.
Upvotes: 1
Views: 293
Reputation: 10918
Is the website you are connecting to for the upload under your own control? If so, it makes it much easier as you can debug both ends of the connection.
For the Android side, I'd use the HttpClient
to perform an HttpPost
of the required data. Look for Java tutorials that cover uploads using these methods. Bear in mind that the Android libraries do use v4.x of the HttpClient
, but they are not the very latest versions, so make sure you develop against the android.jar
versions and not the httpclient-4.1-alpha2.jar
ones.
For the web side you will want either a jsp
or php
solution, where you parse the incoming POST request and save the data (I assume to a database). Again, look for tutorials that cover these points. Good luck.
Upvotes: 1
Reputation: 57702
The easiest way is to just post a HTTP request with the login information and than parse the result with the user data. The response can be anything from csv, xml to json. Just look for tutorials about http requests/response with android and you should find anything you need.
Upvotes: 2