Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Application states in MeeGo 1.2 Harmattan

From Wiki
Jump to: navigation, search

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

Article Metadata
Platform(s): MeeGo 1.2 Harmattan
Created: girishpadia (18 Sep 2011)
Last edited: hamishwillee (13 Jun 2012)


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.

Following values can be retrieved from windowState:

  • windowState.visible
  • windowState.animating
  • windowState.viewMode
  • windowState.Fullsize
  • windowState.Thumbnail
  • windowState.viewModeString

For Example,

if (              
// do something
// do something

More Information

The more details can be obtained from here

This page was last modified on 13 June 2012, at 10:51.
23 page views in the last 30 days.