i developed application with map service and webservices when i run application its became very slow and continuosly it is showing activity not responding force close or wait
how to resolve this issue
Thanks in advance
Aswan
asked Jun 16, 2010 at 9:58
Aswan
5,14510 gold badges49 silver badges71 bronze badges
-
What kind of web service are using? Maybe the connection is slow or you are requesting to much data. Please provide more details about your problem.molnarm– molnarm2010年06月16日 09:59:53 +00:00Commented Jun 16, 2010 at 9:59
-
i am using server side .net client side ksoap2 getting people details and displying on mapAswan– Aswan2010年06月16日 10:37:58 +00:00Commented Jun 16, 2010 at 10:37
-
1Do you run the "slow" code into a separated thread?Francesco Laurita– Francesco Laurita2010年06月16日 10:54:55 +00:00Commented Jun 16, 2010 at 10:54
-
by getting data from webservice i wrote that code inside scheduleAtFixedRateAswan– Aswan2010年06月16日 11:10:04 +00:00Commented Jun 16, 2010 at 11:10
1 Answer 1
Consider use the AsyncTask to run web service in the background. Feedback to UI when data fetched completely.
http://developer.android.com/reference/android/os/AsyncTask.html
answered Jun 16, 2010 at 11:02
qrtt1
7,97710 gold badges46 silver badges64 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
default