BlackBerry Forums Support Community               

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

Please Login to Remove!


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.
Old 09-30-2009, 12:42 PM   #2 (permalink)
BlackBerry Extraordinaire
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts

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

Post some code.
Old 09-30-2009, 01: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

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.
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
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.