Android SDK Version

public interface Continuation<TTaskResult,TContinuationResult>
A function to be called after a task completes.
If you wish to have the Task from a Continuation that does not return a Task be cancelled then throw a CancellationException from the Continuation.
See Also:
Method Summary
Modifier and TypeMethod and Description
TContinuationResultthen(Task<TTaskResult> task) 
Method Detail

then

TContinuationResult then(Task<TTaskResult> task)
                  throws java.lang.Exception
Throws:
java.lang.Exception