Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Constants](https://developer.android.com/reference/android/provider/SimPhonebookContract.ElementaryFiles#constants) \| [Fields](https://developer.android.com/reference/android/provider/SimPhonebookContract.ElementaryFiles#lfields) \| [Methods](https://developer.android.com/reference/android/provider/SimPhonebookContract.ElementaryFiles#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/provider/SimPhonebookContract.ElementaryFiles#inhmethods)

# SimPhonebookContract.ElementaryFiles

*** ** * ** ***

` public static final class SimPhonebookContract.ElementaryFiles `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.provider.SimPhonebookContract.ElementaryFiles |

<br />

*** ** * ** ***

Constants for metadata about the elementary files of the SIM cards in the phone.

### Operations

:
    **Insert**
:
    **Update**
:
    **Delete**
:
    **Query**

<br />

## Summary

| ### Constants ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/SimPhonebookContract.ElementaryFiles#CONTENT_ITEM_TYPE` The MIME type of a CONTENT_URI subdirectory of a single ADN-like elementary file. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/SimPhonebookContract.ElementaryFiles#CONTENT_TYPE` The MIME type of CONTENT_URI providing a directory of ADN-like elementary files. |
| `int` | `https://developer.android.com/reference/android/provider/SimPhonebookContract.ElementaryFiles#EF_ADN` Type for accessing records in the "abbreviated dialing number" (ADN) elementary file on the SIM. |
| `int` | `https://developer.android.com/reference/android/provider/SimPhonebookContract.ElementaryFiles#EF_FDN` Type for accessing records in the "fixed dialing number" (FDN) elementary file on the SIM. |
| `int` | `https://developer.android.com/reference/android/provider/SimPhonebookContract.ElementaryFiles#EF_SDN` Type for accessing records in the "service dialing number" (SDN) elementary file on the SIM. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/SimPhonebookContract.ElementaryFiles#EF_TYPE` The elementary file type for this row. |
| `int` | `https://developer.android.com/reference/android/provider/SimPhonebookContract.ElementaryFiles#EF_UNKNOWN` A value for an elementary file that is not recognized. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/SimPhonebookContract.ElementaryFiles#MAX_RECORDS` The maximum number of records supported by the elementary file. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/SimPhonebookContract.ElementaryFiles#NAME_MAX_LENGTH` The maximum length supported for the name of a record in the elementary file. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/SimPhonebookContract.ElementaryFiles#PHONE_NUMBER_MAX_LENGTH` The maximum length supported for the phone number of a record in the elementary file. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/SimPhonebookContract.ElementaryFiles#RECORD_COUNT` Count of the number of records that are currently stored in the elementary file. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/SimPhonebookContract.ElementaryFiles#SLOT_INDEX` `https://developer.android.com/reference/android/telephony/SubscriptionInfo#getSimSlotIndex()` of the SIM for this row. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/SimPhonebookContract.ElementaryFiles#SUBSCRIPTION_ID` `https://developer.android.com/reference/android/telephony/SubscriptionInfo#getSubscriptionId()` of the SIM for this row. |

| ### Fields ||
|---|---|
| ` public static final https://developer.android.com/reference/android/net/Uri` | `https://developer.android.com/reference/android/provider/SimPhonebookContract.ElementaryFiles#CONTENT_URI` Content URI for the ADN-like elementary files available on the device. |

| ### Public methods ||
|---|---|
| ` static https://developer.android.com/reference/android/net/Uri` | ` https://developer.android.com/reference/android/provider/SimPhonebookContract.ElementaryFiles#getItemUri(int,%20int)(int subscriptionId, int efType) ` Returns a content uri for a specific elementary file. |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.

## Constants

### CONTENT_ITEM_TYPE

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String CONTENT_ITEM_TYPE
```

The MIME type of a CONTENT_URI subdirectory of a single ADN-like elementary file.

<br />

Constant Value: "vnd.android.cursor.item/sim-elementary-file"

### CONTENT_TYPE

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String CONTENT_TYPE
```

The MIME type of CONTENT_URI providing a directory of ADN-like elementary files.

<br />

Constant Value: "vnd.android.cursor.dir/sim-elementary-file"

### EF_ADN

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int EF_ADN
```

Type for accessing records in the "abbreviated dialing number" (ADN) elementary file on the SIM.

ADN records are typically user created.

<br />

Constant Value: 1 (0x00000001)

### EF_FDN

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int EF_FDN
```

Type for accessing records in the "fixed dialing number" (FDN) elementary file on the SIM.

FDN numbers are the numbers that are allowed to dialed for outbound calls when FDN is enabled.

FDN records cannot be modified by applications. Hence, insert, update and delete methods operating on this Uri will throw UnsupportedOperationException

<br />

Constant Value: 2 (0x00000002)

### EF_SDN

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int EF_SDN
```

Type for accessing records in the "service dialing number" (SDN) elementary file on the SIM.

Typically SDNs are preset numbers provided by the carrier for common operations (e.g. voicemail, check balance, etc).

SDN records cannot be modified by applications. Hence, insert, update and delete methods operating on this Uri will throw UnsupportedOperationException

<br />

Constant Value: 3 (0x00000003)

### EF_TYPE

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EF_TYPE
```

The elementary file type for this row.

<br />

**See also:**

- `https://developer.android.com/reference/android/provider/SimPhonebookContract.ElementaryFiles#EF_ADN`
- `https://developer.android.com/reference/android/provider/SimPhonebookContract.ElementaryFiles#EF_FDN`
- `https://developer.android.com/reference/android/provider/SimPhonebookContract.ElementaryFiles#EF_SDN`

Constant Value: "ef_type"

### EF_UNKNOWN

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int EF_UNKNOWN
```

A value for an elementary file that is not recognized.

Generally this should be ignored. If new values are added then this will be used for apps that target SDKs where they aren't defined.

<br />

Constant Value: 0 (0x00000000)

### MAX_RECORDS

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String MAX_RECORDS
```

The maximum number of records supported by the elementary file.

<br />

Constant Value: "max_records"

### NAME_MAX_LENGTH

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String NAME_MAX_LENGTH
```

The maximum length supported for the name of a record in the elementary file.

<br />

Constant Value: "name_max_length"

### PHONE_NUMBER_MAX_LENGTH

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String PHONE_NUMBER_MAX_LENGTH
```

The maximum length supported for the phone number of a record in the elementary file.

<br />

Constant Value: "phone_number_max_length"

### RECORD_COUNT

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String RECORD_COUNT
```

Count of the number of records that are currently stored in the elementary file.

<br />

Constant Value: "record_count"

### SLOT_INDEX

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String SLOT_INDEX
```

`https://developer.android.com/reference/android/telephony/SubscriptionInfo#getSimSlotIndex()` of the SIM for this row.

<br />

Constant Value: "slot_index"

### SUBSCRIPTION_ID

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String SUBSCRIPTION_ID
```

`https://developer.android.com/reference/android/telephony/SubscriptionInfo#getSubscriptionId()` of the SIM for this row.

<br />

Constant Value: "subscription_id"

## Fields

### CONTENT_URI

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final Uri CONTENT_URI
```

Content URI for the ADN-like elementary files available on the device.

<br />

## Public methods

### getItemUri

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static Uri getItemUri (int subscriptionId, 
                int efType)
```

Returns a content uri for a specific elementary file.

If a SIM with the specified subscriptionId is not present an exception will be thrown. If the SIM doesn't support the specified elementary file it will return an empty cursor.

<br />

| Parameters ||
|---|---|
| `subscriptionId` | `int` <br /> |
| `efType` | `int`: Value is one of the following: - `https://developer.android.com/reference/android/provider/SimPhonebookContract.ElementaryFiles#EF_UNKNOWN` - `https://developer.android.com/reference/android/provider/SimPhonebookContract.ElementaryFiles#EF_ADN` - `https://developer.android.com/reference/android/provider/SimPhonebookContract.ElementaryFiles#EF_FDN` - `https://developer.android.com/reference/android/provider/SimPhonebookContract.ElementaryFiles#EF_SDN` |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/net/Uri` | This value cannot be `null`. <br /> |