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 can't return value from asyncTask at all, you can parse result, do what ever you want inside doInbackground() or in onPostExecute(), if you want more flexibility, you can call a method exist out of the asyncTask passing the result from onPostexecute():
private void continueWithResult(String data){
//do whatever you want with the json passed from onPostExecute()
}
class ProcessTask extends AsyncTask {
:
:
@Override
protected void onPostExecute(String result) {
continueWithResult(result);
}
:
:
and you really need to read the link posted by JTsunami