Shikhar13 / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

No way to exit a CN1 application on BlackBerry #223

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What is the expected output? What do you see instead?
Hitting the hangup button will hide the app, but if you go into the BB menu and 
choose Switch Application, the CN1 app is always there.  Because of related 
issue 25, can also not bring up the BB menu within the app to close it.

What version of the product are you using? On what operating system?
CN1 20120613, BBOS7 on Bold 9790.

Original issue reported on code.google.com by 1815...@coolman.ca on 19 Jun 2012 at 6:25

GoogleCodeExporter commented 9 years ago
I think this is technically a dup for issue 25 which should be the real 
solution for this. In our applications we do something like this:
        if(UIManager.getInstance().isThemeConstant("includeExitBool", true)) {
            f.addCommand(new Command("Exit") {
                public void actionPerformed(ActionEvent ev) {
                    Display.getInstance().exitApplication();
                }
            });
        }
Which doesn't add the exit on iOS (where it isn't allowed).

Original comment by shai.almog on 19 Jun 2012 at 6:40

GoogleCodeExporter commented 9 years ago
Good tip, thanks.  Looks like that will prevent the explicit Exit command on 
Android as well, which is what I want (since Google also frowns on the explicit 
Exit).  With this workaround in place, I'd consider the issue a dupe of issue 
25.

Original comment by 1815...@coolman.ca on 19 Jun 2012 at 8:37

GoogleCodeExporter commented 9 years ago
should have been closed a while back

Original comment by cf27...@gmail.com on 13 Dec 2012 at 2:23