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

New Developer
Posts: 29
Registered: ‎09-29-2008
My Device: Not Specified

showNotify(), hideNotify()

Hi all


I want to pause my application on incomming call or message ...


I am implementing the showNotify() and hideNotify() methodes.


but while start the application it shows an exception like


Ubcaught exceptionSmiley TongueopScreen: UiEngine is null != net.rim.device.UiEnginelmp@alae8c8a

what is the problem.

BlackBerry Development Advisor
Posts: 15,727
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: showNotify(), hideNotify()

What action(s) does your application take on start up?  What line of code is triggering the exception?


You can use the PhoneListener interface to listen for incoming calls.

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
Posts: 265
Registered: ‎08-27-2009
My Device: Not Specified

Re: showNotify(), hideNotify()

can u tell what is showNotify and hideNotify can i use these methods for disabling the Call recieve CallEnd Back button....
Posts: 48
Registered: ‎07-15-2009
My Device: Not Specified

Re: showNotify(), hideNotify()

showNotify() and hideNotify() are not implemented in UiApplication as long as I know, they are only for GameCanvas.
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: showNotify(), hideNotify()

when a call is accepted the phone application requests foreground. your application will be notified that it is no longer displayed.
see Application deactivate() or the onUndisplay() in the ui classes.
using a phonelistener is another option as MSohm already said, but with the former you could also work on the usecase of the user changing the application using the task manager.
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter