Since: BlackBerry 10.0.0

#include <bb/ProcessState>

To link against this class, add the following line to your .pro file: LIBS += -lbb

The possible states of the process.

This state indicates whether this process is currently in the Foreground execution partition, the Background partition or is being moved to the Stopped partition.


Public Types Index

Public Types


The possible states of the process.


BlackBerry 10.0.0

Unknown 0

The state of the process is currently not known because this process has not received an event indicating this state.

Foreground 1

The process is executing in the Foreground partition.

The process is currently receiving unbounded system resources.


BlackBerry 10.0.0

Background 2

The process is executing in the Background partition.

The Background partition is for processes that are allowed in the background. This may include thumbnailed applications.

The amount of CPU available to applications in this partition can depend on external factors, such as the amount of battery charge and the charging indicator. If the battery charge is low, the amount of CPU for the Background partition may be restricted to either extend battery life or enable faster charging.

A process in the Background partition is expected to make every effort to be as light on the system as possible, to have minimal impact on applications running in the Foreground partition. The process should consume as little memory and CPU as possible. Connections to other systems should be as brief and lightweight as can be managed.


BlackBerry 10.0.0

Stopping 3

The process will be moving to the Stopped partition shortly.

The Stopped partition is for processes that are not currently allowed to execute. This state is a warning that the process will soon stop receiving CPU. The process should attempt to close all connections and free all possible resources as quickly as possible. The application is not being terminated, but it is likely that there will be no interaction with the process for a lengthy period of time.

A process is typically moved to the Stopped partition after it is minimized or invisible.


BlackBerry 10.0.0

Last modified: 2014-09-30

Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus