to top
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

? Examples
Instrumentation.ActivityResult(int resultCode, Intent resultData)
Create a new activity result.
Public Methods

? Examples
int getResultCode()
Retrieve the result code contained in this result.

? Examples
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.

No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.