×
Namespaces

Variants
Actions
Revision as of 06:41, 25 September 2011 by girishpadia (Talk | contribs)

Application states in MeeGo 1.2 Harmattan

From Nokia Developer Wiki
Jump to: navigation, search

This article explains the two states of an application in MeeGo 1.2 Harmattan


Article Metadata
Compatibility
Platform(s): MeeGo 1.2 Harmattan
Article
Created: girishpadia (18 Sep 2011)
Last edited: girishpadia (25 Sep 2011)

Introduction

This article explains the two states of an application in MeeGo 1.2 Harmattan

Application states

If your MeeGo 1.2 Harmattan (known as Harmattan in developer community) application is running, It may be in the following two states.

Application State Description
Active State
  1. The application is running in the foreground.
  2. It can use more CPU and memory.
  3. In case, If an Active application uses more amount of memory and due to this, if all background applications have already been terminated, the out-of-memory situation can lead to the termination of the Active application.
Minimize State
  1. The application is running in the background.
  2. The application should not perform any background processing, unless this was explicitly requested by the user.
  3. Applications must not update the UI when it is not visible to the end user.
  4. When applications detect a transition to the Minimized state they should free system resources to avoid being terminated by system in case of out of memory condition.
  5. When applications are in the Minimized state, they can be closed in two different ways:
  • The end user closes the application from the task switcher UI.
  • The system terminates the application. This happens if the system runs out of memory available for applications.


The change in the either of the state occurs by the user interaction. The application's state transition can be detected by platformWindow.windowState.

For Example,

if (platformWindow.active)              
// do something
else
// do something

More Information

The more details can be obtained from here

55 page views in the last 30 days.
×