My requirement is very much similar to this question.
Basically, I will be having a login Activity in my android app and when the user enters data and clicks login, I have to hit my website, authenticates users, get the result back and guide the user further based on login success or not.
Here are my questions.
- what are the options for me to implement the above in android? How can I POST data and get results back in my Activity?
- If WebViews are used, can this be simplified?
You can POST to a URI with
HttpClient:All the stuff you need to look at is in the package
org.apache.http.client. There is a good amount of further examples out there on the internet to help you.