device Internet access
i wrote an application that using ksoap2 to consume a web service.
everything works great in the simulator.
i upload it to the device and i am getting prompt for internet access.
after i allow it it's prompt with the following message:
"blocking operation not permitted on event dispatch thread"
thanks in advance,
You never want to perform long-lived actions (like networking) on the main application thread. See the Application Developer Guide Vol I for an example of how to correctly implement networking functionality.
I created the HttpTransport call in a seperate thread.
works great on the simulator but on the device itself it get freeze for ever.
Hm, I'd probably have to see the code to determine what's going on. If you'd want to mail it to me that'd be fine - as long as it's not too big. :)
I posted a ksoap example recently; can you see if that works for you?
|All times are GMT -5. The time now is 11:56 PM.|
Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.