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