You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,9 @@ Android 10 limited access to device identifiers for all apps running on the plat
7
7
**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.
8
8
9
9
To access to this API, you must first register your application using the AccessMgr MX's CSP.
10
+
10
11
You can do it using StageNow, more details here: https://github.com/darryncampbell/EMDK-DeviceIdentifiers-Sample
12
+
11
13
Or you can use this wrapper that will automatically register your application if it is necessary.
12
14
13
15
To use this helper on Zebra Android devices running Android 10 or higher, first declare a new permission in your AndroidManifest.xml
@@ -21,6 +23,7 @@ Then add the uses-library element to your application
21
23
```xml
22
24
<uses-libraryandroid:name="com.symbol.emdk" />
23
25
```
26
+
24
27
Sample AdroidManifest.xml:
25
28
```xml
26
29
<application
@@ -63,7 +66,6 @@ Add the module DeviceIdentifierWrapper as a dependency to your application.
63
66
Now you can use the following snippet codes to retrieve IMEI number and Serial Number information.
64
67
65
68
Snippet code to use to retrieve the Serial Number of the device:
66
-
67
69
```java
68
70
privatevoid getSerialNumber(Context context)
69
71
{
@@ -89,7 +91,6 @@ Snippet code to use to retrieve the Serial Number of the device:
89
91
```
90
92
91
93
Snippet code to use to retrieve the Serial Number of the device:
0 commit comments