# Print output for @column tags ?> Instrumentation.ActivityResult - Android SDK | Android Developers

Most visited


Recently visited


Instrumentation.ActivityResult

public static final class Instrumentation.ActivityResult
extends Object

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


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

Summary


Public constructors

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.

Inherited methods

Public constructors


ActivityResult

public ActivityResult (int resultCode, 
                Intent resultData)

Create a new activity result. See Activity#setResult for more information.

Parameters
resultCode int: The result code to propagate back to the originating activity, often RESULT_CANCELED or RESULT_OK

resultData Intent: The data to propagate back to the originating activity.

Public methods


getResultCode

public int getResultCode ()

Retrieve the result code contained in this result.

Returns
int

getResultData

public Intent getResultData ()

Retrieve the data contained in this result.

Returns
Intent

Browse this site in English?

You requested a page in English, but your language preference for this site is English.

Would you like to change your language preference and browse this site in English? If you want to change your language preference later, use the language menu at the bottom of each page.