BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-30-2007, 05:00 PM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2007
Model: 8700g
PIN: N/A
Carrier: T-Mobile
Posts: 21
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default device Internet access

Please Login to Remove!

Hi

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,
__________________
eyal
Offline  
Old 11-30-2007, 05:54 PM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
richard.puckett's Avatar
 
Join Date: Oct 2007
Location: Seattle, WA
Model: 9020
PIN: N/A
Carrier: T-Mobile
Posts: 212
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Offline  
Old 12-03-2007, 06:48 PM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2007
Model: 8700g
PIN: N/A
Carrier: T-Mobile
Posts: 21
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

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?

thanks,
__________________
eyal
Offline  
Old 12-03-2007, 06:56 PM   #4 (permalink)
Talking BlackBerry Encyclopedia
 
richard.puckett's Avatar
 
Join Date: Oct 2007
Location: Seattle, WA
Model: 9020
PIN: N/A
Carrier: T-Mobile
Posts: 212
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

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?
Offline  




Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.