BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 10-29-2009, 03:25 AM   #1 (permalink)
New Member
 
Join Date: Jun 2009
Model: 8700
PIN: N/A
Carrier: developer
Posts: 14
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How to execute application continuously without hangs device

Please Login to Remove!

Hi,

I have created an application of contacts synchronization. when i run it on device it hangs my device while synchronizing then i am not able to open another application, I am also doing auto synchonization with in a perticular period of time.

I want that synchronization should be perform without hang to device and if i get any interrupt i.e. any call while syncing then it should pause for that moment and continue at call end. How can i do this ?
Offline  
Old 10-29-2009, 07:50 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

Not much here to go on, but my guess is that you are performing this synchronization work in the UI event thread, which will hang the UI for the entire device until it is finished.

This type of work should be done in a worker thread, which runs in the background.
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

Hand Glove Vintage Mannequin General Porcelain Sz 8 HH Trenton NJ Dec. 15, 1971
$55.0
Hand Glove Vintage Mannequin General Porcelain Sz 8 HH Trenton NJ Dec. 15, 1971 pictureDEC / AMI 304E 21-15542-01 vintage ceramic IC *NEW* UIC p/n 40278101
$60.0
DEC / AMI 304E 21-15542-01 vintage ceramic IC *NEW* UIC p/n 40278101  pictureVINTAGE CROUSE HINDS CBG 194 FITTINGS DATED DEC 1974
$11.5
VINTAGE CROUSE HINDS CBG 194 FITTINGS DATED  DEC 1974  pictureVintage SIGNODE Crimping W14 Tool 17.5" long pat#1784123 dec9 1930 /N12167
$85.49
Vintage SIGNODE Crimping W14 Tool  17.5SET/LOT 3x GOLD 6" WAFERS: MICROMODULE SYSTEMS GEMINI CPU OLD VINTAGE IC DEC MCM
$249.95
SET/LOT 3x GOLD 6






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