English | Site Directory

Android - An Open Handset Alliance Project

android.app
public static final class

android.app.Instrumentation.ActivityResult

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

Description of a Activity execution result to return to the original activity. Used with execStartActivity(ApplicationContext, IBinder, Activity, Intent, int).

Summary

Public Constructors

          Instrumentation.ActivityResult(int resultCode, String resultData, Bundle resultExtras)
Create a new activity result.

Public Methods

        int  getResultCode()
Retrieve the result code contained in this result.
        String  getResultData()
Retrieve the data string contained in this result.
        Bundle  getResultExtras()
Retrieve the extra data contained in this result.
Methods inherited from class java.lang.Object

Details

Public Constructors

public Instrumentation.ActivityResult(int resultCode, String resultData, Bundle resultExtras)

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.
resultExtras A Map of any extra data to propagate back to the originating activity.

Public Methods

public int getResultCode()

Retrieve the result code contained in this result.

public String getResultData()

Retrieve the data string contained in this result.

public Bundle getResultExtras()

Retrieve the extra data contained in this result.
Build m5-rc15g - 14 May 2008 12:50