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

Original OEM APPLE Airport Extreme Base Station Power Supply AC Adapter A1202
$8.99
Original OEM APPLE Airport Extreme Base Station Power Supply AC Adapter A1202 picture(C21) Genuine OEM Apple AC Cord
$25.0
(C21) Genuine OEM Apple AC Cord pictureLau W89-252 OEM Replacement Condenser Fan Blade Fixed Hub
$61.81
Lau W89-252 OEM Replacement Condenser Fan Blade Fixed Hub pictureLau W89-251 OEM Replacement Condenser Fan Blade Fixed Hub
$121.52
Lau W89-251 OEM Replacement Condenser Fan Blade Fixed Hub pictureOriginal OEM APPLE Airport Extreme Base Station Power Supply AC Adapter A1202
$14.6
Original OEM APPLE Airport Extreme Base Station Power Supply AC Adapter A1202 picture






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