Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
07-24-2008 12:56 PM
Solved! Go to Solution.
07-24-2008 01:19 PM - edited 07-24-2008 01:19 PM
For your example, the best solution would be to use a listener.
More information can be found in this thread:
07-24-2008 03:12 PM
A file system listener is a fine idea to know what files changed, but how do I know when to prompt the user? That's why I was wondering if invoke is a blocking call. If it is, I can just wait till it returns. If not, I need to know when the user is done with the other app.
I've noticed that when Viigo calls the browser, when I exit the browser I return to Viigo. Is there a way to tell when that happens? So I could call the camera (or browser, phonebook, whatever) and when the user is done they return to my app. Is there an event I can listen for or a function I can poll to see if it's me in the foreground?
07-24-2008 03:39 PM - edited 07-24-2008 03:51 PM
You can call Application.isForeground() to see if your app is in the foreground.
Also, if you are wondering if a function is blocking or not, you can do a printout after the call, and then check to see when it shows up. (Yes, invokeApplication is a blocking call).
07-25-2008 10:16 AM