11-06-2008 10:17 AM
Is there a way to check if the VoiceApp is in foreground ?
I am implementing phonelistener and would like to know when the VoiceApp has gone to the background.
11-12-2008 01:23 PM
If the Phone application appeared on top of your application, you can override the Screen.onExposed method to be alerted when your application is visible.
There are no methods that specifically allow you to poll to see if a given external application is in the foreground.
11-13-2008 03:56 AM
So I can't get none of these to work:
System.out.println("isAlive: " + fPhoneApplication.isAlive()); System.out.println("isEventThread: " + fPhoneApplication.isEventThread()); System.out.println("isForeground: " + fPhoneApplication.isForeground()); System.out.println("isHandlingEvents: " + fPhoneApplication.isHandlingEvents());