Skip to content

Most visited

Recently visited

navigation

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

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.

Inherited methods

From class java.lang.Object

Public constructors

Instrumentation.ActivityResult

Added in API level 1
Instrumentation.ActivityResult (int resultCode, 
                Intent resultData)

Create a new activity result. See setResult(int) 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

Added in API level 1
int getResultCode ()

Retrieve the result code contained in this result.

Returns
int

getResultData

Added in API level 1
Intent getResultData ()

Retrieve the data contained in this result.

Returns
Intent
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.