Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
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.