Class Overview
This class contains information on SIM card changes.
NOTE: There is no Dual SIM support. Information may be
inconsistent when two SIM cards are inserted on device.
Summary
Constants |
int |
SIM_CHANGED |
SIM card is changed. |
int |
SIM_INSERTED |
New SIM card is inserted into the device after a factory reset. |
int |
SIM_REMOVED |
SIM card is removed from the device. |
[Expand]
Inherited Constants |
From interface
android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
android.os.Parcelable
abstract
int
|
describeContents()
|
abstract
void
|
writeToParcel(Parcel arg0, int arg1)
|
|
Constants
public
static
final
int
SIM_CHANGED
Since: API level 2
SIM card is changed. Old SIM card replaced with a new SIM card.
NOTE: Once a SIM Card is replaced to another, this constant
will be sent even if you remove and insert the same SIM Card.
Constant Value:
2
(0x00000002)
public
static
final
int
SIM_INSERTED
Since: API level 2
New SIM card is inserted into the device after a factory reset.
Constant Value:
3
(0x00000003)
public
static
final
int
SIM_REMOVED
Since: API level 2
SIM card is removed from the device.
Constant Value:
1
(0x00000001)
Fields
public
int
changeOperation
Since: API level 2
public
long
changeTime
Since: API level 2
The time at which this SIM card change operation occurred.
public
SimInfo
currentSimInfo
Since: API level 2
SIM information of the current SIM card. If SIM
change operation is SIM_REMOVED
, it will contain
information from SIM card that was removed.
public
SimInfo
previousSimInfo
Since: API level 2
SIM information of the previous SIM card. Is null
if SIM
change operation is SIM_INSERTED
.
Public Constructors