Android APIs
public static final class

Instrumentation.ActivityResult

extends Object
java.lang.Object
   ↳ android.app.Instrumentation.ActivityResult

Class Overview

Description of a Activity execution result to return to the original activity.

Summary

Public Constructors
Instrumentation.ActivityResult(int resultCode, Intent resultData)
Create a new activity result.
Public Methods
int getResultCode()
Retrieve the result code contained in this result.
Intent getResultData()
Retrieve the data contained in this result.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Instrumentation.ActivityResult (int resultCode, Intent resultData)

Added in API level 1

Create a new activity result. See setResult(int) for more information.

Parameters
resultCode The result code to propagate back to the originating activity, often RESULT_CANCELED or RESULT_OK
resultData The data to propagate back to the originating activity.

Public Methods

public int getResultCode ()

Added in API level 1

Retrieve the result code contained in this result.

public Intent getResultData ()

Added in API level 1

Retrieve the data contained in this result.