Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ltrudu authored Aug 12, 2020
1 parent f0dc7a4 commit 12ea8ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ Android 10 limited access to device identifiers for all apps running on the plat
**Zebra mobile computers running Android 10 are able to access both the serial number and IMEI** however applications need to be **explicitly granted the ability** to do so and use a proprietary API.

To access to this API, you must first register your application using the AccessMgr MX's CSP.

You can do it using StageNow, more details here: https://github.com/darryncampbell/EMDK-DeviceIdentifiers-Sample

Or you can use this wrapper that will automatically register your application if it is necessary.

To use this helper on Zebra Android devices running Android 10 or higher, first declare a new permission in your AndroidManifest.xml
Expand All @@ -21,6 +23,7 @@ Then add the uses-library element to your application
```xml
<uses-library android:name="com.symbol.emdk" />
```

Sample AdroidManifest.xml:
```xml
<application
Expand Down Expand Up @@ -63,7 +66,6 @@ Add the module DeviceIdentifierWrapper as a dependency to your application.
Now you can use the following snippet codes to retrieve IMEI number and Serial Number information.

Snippet code to use to retrieve the Serial Number of the device:

```java
private void getSerialNumber(Context context)
{
Expand All @@ -89,7 +91,6 @@ Snippet code to use to retrieve the Serial Number of the device:
```

Snippet code to use to retrieve the Serial Number of the device:

```java
private void getIMEINumber(Context context)
{
Expand Down

0 comments on commit 12ea8ea

Please sign in to comment.