Stay organized with collections
Save and categorize content based on your preferences.
TelephonyCallback.DataActivationStateListener
public
static
interface
TelephonyCallback.DataActivationStateListener
android.telephony.TelephonyCallback.DataActivationStateListener
|
Interface for SIM data activation state listener.
Summary
Public methods |
abstract
void
|
onDataActivationStateChanged(int state)
Callback invoked when the SIM data activation state has changed on the registered
subscription.
|
Public methods
onDataActivationStateChanged
public abstract void onDataActivationStateChanged (int state)
Callback invoked when the SIM data activation state has changed on the registered
subscription.
Note, the registration subscription ID comes from TelephonyManager
object
which registers TelephonyCallback by
TelephonyManager.registerTelephonyCallback(Executor, TelephonyCallback)
.
If this TelephonyManager object was created with
TelephonyManager.createForSubscriptionId(int)
, then the callback applies to the
subscription ID. Otherwise, this callback applies to
SubscriptionManager.getDefaultSubscriptionId()
.
Parameters |
state |
int : is the current SIM data activation state
Value is android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_UNKNOWN, android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_ACTIVATING, android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_ACTIVATED, android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_DEACTIVATED, or android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_RESTRICTED |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# TelephonyCallback.DataActivationStateListener\n\nAdded in [API level 31](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nTelephonyCallback.DataActivationStateListener\n=============================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/telephony/TelephonyCallback.DataActivationStateListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nTelephonyCallback.DataActivationStateListener\n`\n\n\n`\n\n\n`\n\n|-----------------------------------------------------------------|\n| android.telephony.TelephonyCallback.DataActivationStateListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nInterface for SIM data activation state listener.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onDataActivationStateChanged](/reference/android/telephony/TelephonyCallback.DataActivationStateListener#onDataActivationStateChanged(int))`(int state) ` Callback invoked when the SIM data activation state has changed on the registered subscription. |\n\nPublic methods\n--------------\n\n### onDataActivationStateChanged\n\nAdded in [API level 31](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onDataActivationStateChanged (int state)\n```\n\nCallback invoked when the SIM data activation state has changed on the registered\nsubscription.\nNote, the registration subscription ID comes from [TelephonyManager](/reference/android/telephony/TelephonyManager) object\nwhich registers TelephonyCallback by\n[TelephonyManager.registerTelephonyCallback(Executor, TelephonyCallback)](/reference/android/telephony/TelephonyManager#registerTelephonyCallback(java.util.concurrent.Executor,%20android.telephony.TelephonyCallback)).\nIf this TelephonyManager object was created with\n[TelephonyManager.createForSubscriptionId(int)](/reference/android/telephony/TelephonyManager#createForSubscriptionId(int)), then the callback applies to the\nsubscription ID. Otherwise, this callback applies to\n[SubscriptionManager.getDefaultSubscriptionId()](/reference/android/telephony/SubscriptionManager#getDefaultSubscriptionId()).\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `state` | `int`: is the current SIM data activation state Value is android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_UNKNOWN, android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_ACTIVATING, android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_ACTIVATED, android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_DEACTIVATED, or android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_RESTRICTED \u003cbr /\u003e |"]]