Unable to Pop ZoomScreen...

Hi all

The code below is used to skip the ZoomScreen, but I am unable to blow the

ZoomScreen.  I tried the two popScreen (zoomScreen) and zoomScreen.close (), where zoomScreen is

the class object ZoomScreen.  But I am unable to Pop from the screen.

Is - how to write do break out the ZoomScreen?

Any help in this matter would be much appreciated...

EncodedImage myImg = EncodedImage.createEncodedImage(data, 0, data.length);
zoomingScreen = new ZoomScreen(myImg);
UiApplication.getUiApplication().pushScreen(zoomingScreen);
zoomingScreen.addKeyListener(new MyKeyListener());
}
    private class MyKeyListener implements KeyListener
    {
    public boolean keyDown(int keycode, int time) {
        int key = Keypad.key(keycode);
        if (key == Keypad.KEY_ESCAPE)
        {
            //Dialog.alert("***********");
            UiApplication.getUiApplication().popScreen(zoomingScreen);
            //zoomingScreen.close();

            return true;
        }
        // Otherwise, we'll return false so as not to consume the
        // keyDown event
        return false;
    }
    // We will only act on the keyDown event
    public boolean keyChar(char key, int status, int time) {
        return false;
    }

    public boolean keyRepeat(int keycode, int time) {
        return false;
    }

    public boolean keyStatus(int keycode, int time) {
        return false;
    }

    public boolean keyUp(int keycode, int time) {
        return false;
    }
}

Kind regards

Saran...

I guess your screen zoom is at the top of the screen

Try with this in your Escape event management

   UiApplication.getUiApplication().popScreen(UiApplication.getUiApplication().getActiveScreen());

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for