BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-30-2007, 04: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, 04: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, 05: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, 05: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  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





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