FileDocCategorySizeDatePackage
ResultInfo.javaAPI DocAndroid 1.5 API2436Wed May 06 22:41:54 BST 2009android.app

ResultInfo

public class ResultInfo extends Object implements android.os.Parcelable
{@hide}

Fields Summary
public final String
mResultWho
public final int
mRequestCode
public final int
mResultCode
public final android.content.Intent
mData
public static final Parcelable.Creator
CREATOR
Constructors Summary
public ResultInfo(String resultWho, int requestCode, int resultCode, android.content.Intent data)

        mResultWho = resultWho;
        mRequestCode = requestCode;
        mResultCode = resultCode;
        mData = data;
    
public ResultInfo(android.os.Parcel in)


       
        mResultWho = in.readString();
        mRequestCode = in.readInt();
        mResultCode = in.readInt();
        if (in.readInt() != 0) {
            mData = Intent.CREATOR.createFromParcel(in);
        } else {
            mData = null;
        }
    
Methods Summary
public intdescribeContents()

        return 0;
    
public java.lang.StringtoString()

        return "ResultInfo{who=" + mResultWho + ", request=" + mRequestCode
            + ", result=" + mResultCode + ", data=" + mData + "}";
    
public voidwriteToParcel(android.os.Parcel out, int flags)

        out.writeString(mResultWho);
        out.writeInt(mRequestCode);
        out.writeInt(mResultCode);
        if (mData != null) {
            out.writeInt(1);
            mData.writeToParcel(out, 0);
        } else {
            out.writeInt(0);
        }