Guest User

Untitled

a guest
Aug 15th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. android ksoap2 response issue
  2. private class webServiceCall extends AsyncTask<String, Void, Object>
  3. {
  4. @Override
  5. protected void onPreExecute()
  6. {
  7. dialog.show();
  8. }
  9.  
  10. protected Object onPostExecute(Object... params)
  11. {
  12. dialog.dismiss();
  13. return params;
  14. }
  15.  
  16. @Override
  17. protected Object doInBackground(String... params)
  18. {
  19. Object result = null;
  20. String[] temp = new String[params.length - 2];
  21. String method_name = params[0];
  22. String action_name = params[1];
  23. for (int i = 2; i < params.length; i++)
  24. {
  25. temp[i-2] = params[i];
  26. }
  27. result = callWebService(method_name, action_name, temp, 60);
  28. dialog.dismiss();
  29. return result;
  30. }
  31.  
  32. }
  33.  
  34. Object result = new webServiceCall().execute(UserArgs);
  35.  
  36.  
  37. String str = result.toString();
  38. String delims = "[=;]+";
  39. String [] stringuser = str.split(delims);
Add Comment
Please, Sign In to add comment