BlackBerry Forums Support Community

BlackBerry Forums Support Community (
-   Developer Forum (
-   -   device Internet access (

eyalo 11-30-2007 05:00 PM

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"

any ideas?

thanks in advance,

richard.puckett 11-30-2007 05:54 PM

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.

eyalo 12-03-2007 06:48 PM

I created the HttpTransport call in a seperate thread.
works great on the simulator but on the device itself it get freeze for ever.

any ideas?


richard.puckett 12-03-2007 06:56 PM

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 02:58 AM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.