1

POST request to Web server android

view story
linux-howto

http://stackoverflow.com – I am working on an Application which is using the AsyncTask. I am trying to connect to my website, check user login details and return true if user exists and false if not found. Based on the response I will display an error message or load up the relevant screen for the user. However I am wondering if the below code should be placed in the onClick listener of my login button or in the onPreExecute() method of the AsyncTask? I call the asyncTask like this public void onClick(View v) { //Call background task new HttpTask().execute(url); } }); Does it ma (HowTos)