Wednesday 18 April 2012

Blackberry Application development

Sending application to background on tapping "Escape key".


Code Snippet

protected boolean keyChar(char c, int status, int time) {
       
        if(c == Characters.ESCAPE)
        {
            UiApplication.getUiApplication().requestBackground();
            return true;
        }
       
        return super.keyChar(c, status, time);
    }

1 comment:

  1. Hello, this post has really very good information about blackbeery application.
    iPhone Application Development

    ReplyDelete