Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 412
Registered: ‎09-12-2008
My Device: 9000 9810

Is VoiceApplication in foreground? check

Hi all.

 

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.

 

 



"Listen carefully, I shall say this only once"
BlackBerry Development Advisor
Posts: 15,300
Registered: ‎07-09-2008
My Device: BlackBerry Passport
My Carrier: Bell

Re: Is VoiceApplication in foreground? check

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.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 412
Registered: ‎09-12-2008
My Device: 9000 9810

Re: Is VoiceApplication in foreground? check

Thanks.

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());

right ?


 



"Listen carefully, I shall say this only once"