开发者

Blackberry java app running in background

开发者 https://www.devze.com 2023-01-06 03:27 出处:网络
I would like to exit the application with 2 different ways: - When key \"escape\" pressed, the application exit but still run in background.

I would like to exit the application with 2 different ways: - When key "escape" pressed, the application exit but still run in background. - When the user select "Close" in the menu to close the application totally. This is already working as it is the default behavior.

In my MainScreen class, I have 开发者_运维百科overwritten the close() method that call super.close() at the end in order to close the screen.

Thank you


See the method Application.requestBackground()

http://www.blackberry.com/developers/docs/4.5.0api/net/rim/device/api/system/Application.html#requestBackground()

0

精彩评论

暂无评论...
验证码 换一张
取 消