# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

# TelephonyCallback.DataActivityListener

`public static interface TelephonyCallback.DataActivityListener`
``

android.telephony.TelephonyCallback.DataActivityListener

Interface for data activity state listener.

## Summary

### Public methods
`abstract void` | `onDataActivity(int direction)` Callback invoked when data activity state changes on the registered subscription.

## Public methods

### onDataActivity

    public abstract void onDataActivity (int direction)

Callback invoked when data activity state changes 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
`direction` | `int`: Value is `TelephonyManager.DATA_ACTIVITY_NONE`, `TelephonyManager.DATA_ACTIVITY_IN`, `TelephonyManager.DATA_ACTIVITY_OUT`, `TelephonyManager.DATA_ACTIVITY_INOUT`, or `TelephonyManager.DATA_ACTIVITY_DORMANT`

See also:

- `TelephonyManager.DATA_ACTIVITY_NONE`
- `TelephonyManager.DATA_ACTIVITY_IN`
- `TelephonyManager.DATA_ACTIVITY_OUT`
- `TelephonyManager.DATA_ACTIVITY_INOUT`
- `TelephonyManager.DATA_ACTIVITY_DORMANT`

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*