Bada learning-(7) Application Status transition

Source: Internet
Author: User

Application Status Conversion

All Bada applications have the following four statuses, corresponding to the following thing processor:

  • Initialization

    • The application framework initializes the application and creates an application interface framework.
    • Construct the user interface and restore the last running result
    • If the processor of the OSP: APP: Application: onappinitializing () event returns false, the application status changes to 'Ending 'and exits.

      If the event processor returns true, the application enters the 'running' state and initializes related resources, such as UI control and status.

  • Running
    • When the application is running, it can switch between the background and the foreground
  • Closing
    • The application releases its resources and stores the settings. The web application does not need to manually release its resources because the Web framework automatically implements this action.
  • Terminated
    • The Application Framework releases the memory occupied by it.

Shows how the C ++ or flash application state is changed from one state to another. the status change of Web applications is the same. The only exception of the current event processor is oninitializing () and onterminating ().

Figure: C ++ and FLASH application state transition

Original English address:

Http://developer.bada.com/help_2.0/topic/com.osp.documentation.help/html/bada_overview/bada_app_model/application_state_transition.htm

Disclaimer: This Bada Learning Series is just my hobbies and I am learning. By the way, I have translated it based on my understanding (currently Bada has few Chinese documents, for the reference of friends who are also studying or interested, for the reference only, what is wrong with the translation? If you are not in place, I hope you will forgive me. If there are any mistakes, you are welcome to correct them ~ Mailbox: jimmy.chiang2010@gmail.com to learn together ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.