zoukankan      html  css  js  c++  java
  • 5). BlackBerry生命周期 BlackBerry Application LifeCycle and Phasesby

    BlackBerry Application Life-Cycle and Phasesby     

     

     

    The runtime lifecycle defines a common runtime architecture that is the same for all apps. This makes mobile apps much easier to design, and means that you don't have to worry about complex interactions with the system; critical system interactions are already built into the lifecycle.

    BlackBerry Application Life-Cycle

    Following are the events which used in order while your application will move through.

    EventObjectMethod
    Application launched.UiApplicationmain( String[] args )
    OS tells application to start.MainScreenactivate()
    Screen is pushed onto stack.MainScreenonDisplay()
    Screen about to be drawn.MainScreenonUiEngineAttached()
    Menu or dialog is removed.MainScreenonExposed()
    Screen is closed.MainScreenclose()
    OS puts application in background.UiApplicationdeactivate()


    The BlackBerry Tablet OS is a multithreaded, multitasking platform so it can run multiple applications at the same time. While your application is running in the foreground, it is active. However, it can be interrupted when another application opens and replaces yours as the active application
    These events can be fire into three main phases in a BlackBerry application runtime life-cycle:

    1. Startup : startup is generally done by one of the following three ways

      - User clicks the application's icon on the home screen.

      - Application is automatically started when device is turn on.

      - The application is run by another application.
    2. Running
    3. Exiting

    转自: http://www.mindcracker.com/Story/392/blackberry-application-life-cycle-and-phases                                                          

    做个快乐的自己。
  • 相关阅读:
    Fiddler抓包
    用powershell Crescendo模块,把【linux字符命令】包装成【powershell对象命令】
    初探设计模式-单例模式
    dev的CheckedListBoxControl的使用
    git的安装及使用(三)----SSH连接
    go——杂碎小知识
    goland安装+打印hello world
    git的安装及使用(二)
    git的安装及使用(一)
    xxx
  • 原文地址:https://www.cnblogs.com/Jessy/p/2331891.html
Copyright © 2011-2022 走看看