This class represents a handle on a stack of activities.
It should only be used for suspending and resuming the
The activity at the top of the stack is the current activity.
for (int i = 0; i < hierarchy.length; i++)
- the number of activities associated with this stack.
- whether or not this is a valid context. If a single entry in
the context is invalid then we assume the entire context is.
- the current activity in the context.
Obtain a copy of this context. Although the context may be shared
between different threads, the same instance of the context should
- the context copy.
Two contexts are equal if both hierarchies are identical.
Although users won't typically care what the underlying implementation
of a context is, they will need to do comparisons.
So, although this method is provided by Java.Object we have it here
to ensure that we don't forget to implement it!
String toReturn = "Activity context:";
int copySize = toCopy._hierarchy.size();
for (int i = 0; i < copySize; i++)