diff --git a/README.md b/README.md index e9cd2c7..79a2984 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ You can do it using StageNow, more details here: https://github.com/darryncampbe 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 ```xml @@ -20,6 +21,7 @@ To use this helper on Zebra Android devices running Android 10 or higher, first ``` + Then add the uses-library element to your application ```xml @@ -45,6 +47,7 @@ Sample AdroidManifest.xml: ``` + Finally, add EMDK dependency to your application build.graddle file: ```text compileOnly 'com.symbol:emdk:+' @@ -62,10 +65,12 @@ dependencies { } ``` + 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) @@ -91,6 +96,7 @@ 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) @@ -116,6 +122,7 @@ Snippet code to use to retrieve the Serial Number of the device: } ``` + 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. Sample code if you need to get both device identifiers: