Android APIs
public class

IccOpenLogicalChannelResponse

extends Object
implements Parcelable
java.lang.Object
   ↳ android.telephony.IccOpenLogicalChannelResponse

Class Overview

Response to the iccOpenLogicalChannel(String) command.

Summary

Constants
int INVALID_CHANNEL Indicates an invalid channel.
int STATUS_MISSING_RESOURCE
int STATUS_NO_ERROR Possible status values returned by open channel command.
int STATUS_NO_SUCH_ELEMENT
int STATUS_UNKNOWN_ERROR
[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<IccOpenLogicalChannelResponse> CREATOR
Public Methods
int describeContents()
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
int getChannel()
byte[] getSelectResponse()
int getStatus()
String toString()
Returns a string containing a concise, human-readable description of this object.
void writeToParcel(Parcel out, int flags)
Flatten this object in to a Parcel.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Constants

public static final int INVALID_CHANNEL

Added in API level 21

Indicates an invalid channel.

Constant Value: -1 (0xffffffff)

public static final int STATUS_MISSING_RESOURCE

Added in API level 21

Constant Value: 2 (0x00000002)

public static final int STATUS_NO_ERROR

Added in API level 21

Possible status values returned by open channel command. STATUS_NO_ERROR: Open channel command returned successfully. STATUS_MISSING_RESOURCE: No logical channels available. STATUS_NO_SUCH_ELEMENT: AID not found on UICC. STATUS_UNKNOWN_ERROR: Unknown error in open channel command.

Constant Value: 1 (0x00000001)

public static final int STATUS_NO_SUCH_ELEMENT

Added in API level 21

Constant Value: 3 (0x00000003)

public static final int STATUS_UNKNOWN_ERROR

Added in API level 21

Constant Value: 4 (0x00000004)

Fields

public static final Creator<IccOpenLogicalChannelResponse> CREATOR

Added in API level 21

Public Methods

public int describeContents ()

Added in API level 21

Describe the kinds of special objects contained in this Parcelable's marshalled representation.

Returns
  • a bitmask indicating the set of special object types marshalled by the Parcelable.

public int getChannel ()

Added in API level 21

Returns
  • the channel id.

public byte[] getSelectResponse ()

Added in API level 21

Returns
  • the select response.

public int getStatus ()

Added in API level 21

Returns
  • the status of the command.

public String toString ()

Added in API level 21

Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:

   getClass().getName() + '@' + Integer.toHexString(hashCode())

See Writing a useful toString method if you intend implementing your own toString method.

Returns
  • a printable representation of this object.

public void writeToParcel (Parcel out, int flags)

Added in API level 21

Flatten this object in to a Parcel.

Parameters
out The Parcel in which the object should be written.
flags Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE.