BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 09-30-2009, 08:23 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Mar 2009
Model: 8120
PIN: N/A
Carrier: gmail
Posts: 18
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default backgraund thread interrupts the GUI

Please Login to Remove!

Hi,

In my application I am sending some images to server in a separate thread.But I am facing serious problem with my GUI once thread starts uploading my data to server.My screen almost stuck and i cant use trackball to navigation among my fields in screen.Once thread finishes its job everything is fine.But until thread is running in background I am not able to use my GUI ,it is stuck for that particular time.
Offline  
Old 09-30-2009, 11:42 AM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

Doesn't sound right to me. Are you trying to synchonize with the UI thread for a progress dialog, or something?

Post some code.
Offline  
Old 09-30-2009, 12:56 PM   #3 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default

Or the other way. I have written network communications threads that update gauges on the GUI. If written correctly the GUI responsiveness doesn't suffer, but data speed may a little depending on how much CPU the GUI is taking. Anything that happens on the UI event thread, or while the lock is held has to be very quick and not call any methods that may wait for external events.

Doug is right, we need to see some code.
__________________
My other Blackberry is a PlayBook.
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.