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
New Developer
bbzilla
Posts: 4
Registered: ‎05-17-2009
My Device: Not Specified

How to detect the calendar reminder notification screen?

I have a testing app that displays a dialog box and then simulates a "ESC" keypress to dismiss it. This simulates a user interaction.

I need to detect the meeting/calendar reminder notification screen, because it gets displayed on top of my dialog box and the key press I send goes to the reminder screen.

 

The idea is to fail the test if a reminder or lock screen is present. I don't want to dismiss them.

 

1. I need to detect this and similar screens and fail the test

OR

2. display my dialog box on top of the reminder and successfully do the test.

 

My dialog box is:

   UiApplication.getUiApplication().pushGlobalScreen(alert.getScreen(), 0, UiEngine.GLOBAL_MODAL);

 but still gets overridden by the reminders.

 

The other situation I can't override is the incoming call screen. Is there a way to detect that screen, so I can fail the test.

 

Thanks.

Please use plain text.