BlackBerry Forums Support Community

Closed Thread
LinkBack Thread Tools
Old 01-06-2011, 02:59 AM   #1 (permalink)
New Member
Join Date: Oct 2010
Model: 9650
Carrier: Developer
Posts: 14
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default invokeLater() and invokeAndWait() ?

Please Login to Remove!

Hi all,

Can you explain to me about difference of invokeLater() and invokeAndWait() method?

When should we use invokeLater() and when should we use invokeAndWait() method?

Thank you !
Old 01-06-2011, 07:48 AM   #2 (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 Re: invokeLater() and invokeAndWait() ?

invokeAndWait() will not return until the method returns, invokeLater() returns immediately, the method is run later. When you should use each depends on your program logic.
My other Blackberry is a PlayBook.

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