I am calling a method of another class from my activity that calls a webservice using ksoap2. I want to handle timeout for this. If the method takes more than 10 seconds to execute, then I need to show an alert dialog indicating that the process was not successful.
I tried using the timeout value as follows:
HttpsTransportSE transport = new HttpsTransportSE(URL,TIMEOUT);
but ksoap2 is ignoring the timeout for some reason. I'm using ksoap2 2.6.5.
Is there any way where in I can execute the method for 10 seconds and then display the appropriate dialog box indicating a success or failure in android?