for one of projects i want to use Ksoap with AsyncTask. now in this below code AsyncTask can work correctly but after return result to
You cannot get the return value of AsyncTask by
tmp = String.valueOf(p.execute());
This is because Android app doesn't wait for AsyncTask to return a value to move to next line.
You need to use the onPostExecute() Method to process the return value of an AsyncTask .
You can refer AsyncTask: where does the return value of doInBackground() go? for more syntax and more information.