Skip to content

Commit 29d4923

Browse files
authored
Update README.md
1 parent 30046c6 commit 29d4923

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ You can do it using StageNow, more details here: https://github.com/darryncampbe
1313
Or you can use this wrapper that will automatically register your application if it is necessary.
1414

1515

16+
1617
To use this helper on Zebra Android devices running Android 10 or higher, first declare a new permission in your AndroidManifest.xml
1718

1819
```xml
1920
<uses-permission android:name="com.zebra.provider.READ"/>
2021
<uses-permission android:name="com.symbol.emdk.permission.EMDK" />
2122
```
2223

24+
2325
Then add the uses-library element to your application
2426
```xml
2527
<uses-library android:name="com.symbol.emdk" />
@@ -45,6 +47,7 @@ Sample AdroidManifest.xml:
4547
</application>
4648
```
4749

50+
4851
Finally, add EMDK dependency to your application build.graddle file:
4952
```text
5053
compileOnly 'com.symbol:emdk:+'
@@ -62,10 +65,12 @@ dependencies {
6265
}
6366
```
6467

68+
6569
Add the module DeviceIdentifierWrapper as a dependency to your application.
6670

6771
Now you can use the following snippet codes to retrieve IMEI number and Serial Number information.
6872

73+
6974
Snippet code to use to retrieve the Serial Number of the device:
7075
```java
7176
private void getSerialNumber(Context context)
@@ -91,6 +96,7 @@ Snippet code to use to retrieve the Serial Number of the device:
9196
}
9297
```
9398

99+
94100
Snippet code to use to retrieve the Serial Number of the device:
95101
```java
96102
private void getIMEINumber(Context context)
@@ -116,6 +122,7 @@ Snippet code to use to retrieve the Serial Number of the device:
116122
}
117123
```
118124

125+
119126
As the previous methods are asynchronous, if you need both information, it is strongly recommended to call the second request inside the onSuccess or onError of the first request.
120127

121128
Sample code if you need to get both device identifiers:

0 commit comments

Comments
 (0)