Build 1.0_r1(from source)

android.app
Class ActivityManager.RunningTaskInfo

java.lang.Object
  extended by android.app.ActivityManager.RunningTaskInfo
All Implemented Interfaces:
Parcelable
Enclosing class:
ActivityManager

public static class ActivityManager.RunningTaskInfo
extends Object
implements Parcelable

Information you can retrieve about a particular task that is currently "running" in the system. Note that a running task does not mean the given task actual has a process it is actively running in; it simply means that the user has gone to it and never closed it, but currently the system may have killed its process and is only holding on to its last state in order to restart it when the user returns.


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.Creator<T>
 
Field Summary
 ComponentName baseActivity
          The component launched as the first activity in the task.
static Parcelable.Creator<ActivityManager.RunningTaskInfo> CREATOR
           
 CharSequence description
          Description of the task's current state.
 int id
          A unique identifier for this task.
 int numActivities
          Number of activities in this task.
 int numRunning
          Number of activities that are currently running (not stopped and persisted) in this task.
 Bitmap thumbnail
          Thumbnail representation of the task's current state.
 ComponentName topActivity
          The activity component at the top of the history stack of the task.
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
ActivityManager.RunningTaskInfo()
           
 
Method Summary
 int describeContents()
          Describe the kinds of special objects contained in this Parcelable's marshalled representation.
 void readFromParcel(Parcel source)
           
 void writeToParcel(Parcel dest, int flags)
          Flatten this object in to a Parcel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public int id
A unique identifier for this task.


baseActivity

public ComponentName baseActivity
The component launched as the first activity in the task. This can be considered the "application" of this task.


topActivity

public ComponentName topActivity
The activity component at the top of the history stack of the task. This is what the user is currently doing.


thumbnail

public Bitmap thumbnail
Thumbnail representation of the task's current state.


description

public CharSequence description
Description of the task's current state.


numActivities

public int numActivities
Number of activities in this task.


numRunning

public int numRunning
Number of activities that are currently running (not stopped and persisted) in this task.


CREATOR

public static final Parcelable.Creator<ActivityManager.RunningTaskInfo> CREATOR
Constructor Detail

ActivityManager.RunningTaskInfo

public ActivityManager.RunningTaskInfo()
Method Detail

describeContents

public int describeContents()
Description copied from interface: Parcelable
Describe the kinds of special objects contained in this Parcelable's marshalled representation.

Specified by:
describeContents in interface Parcelable
Returns:
a bitmask indicating the set of special object types marshalled by the Parcelable.

writeToParcel

public void writeToParcel(Parcel dest,
                          int flags)
Description copied from interface: Parcelable
Flatten this object in to a Parcel.

Specified by:
writeToParcel in interface Parcelable
Parameters:
dest - The Parcel in which the object should be written.
flags - Additional flags about how the object should be written. May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE.

readFromParcel

public void readFromParcel(Parcel source)

Build 1.0_r1(from source)

Please submit a feedback, bug or feature