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

AVC BNTA0712R5H Dell OEM Precision M4500 Fan HFJ85c FAN #LRR
$16.48
AVC BNTA0712R5H Dell OEM Precision M4500 Fan HFJ85c FAN  #LRR pictureFan AVC BNTA0712R5H Dell OEM Precision M4500 Fan HFJ85c FAN
$16.0
Fan AVC BNTA0712R5H Dell OEM Precision M4500 Fan HFJ85c FAN pictureNew Sino-American SA124C-12V AC Adapter 2-Pin for Dell SonicWall, OEM
$5.0
New Sino-American SA124C-12V AC Adapter 2-Pin for Dell SonicWall, OEM pictureGenuine OEM New Open Box Dell G20VW Magenta Toner Cartridge; E525 Series
$39.98
Genuine OEM New Open Box Dell G20VW Magenta Toner Cartridge; E525 Series pictureOEM BULB with Housing for DELL 725-10331 Projector with 180 Day Warranty
$309.0
OEM BULB with Housing for DELL 725-10331 Projector with 180 Day Warranty picture






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