Skip to content

Commit 61f5629

Browse files
authored
Update README.md
1 parent 9a023a9 commit 61f5629

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,21 +118,24 @@ As the previous methods are asynchronous, if you need both information, it is st
118118

119119
Sample code if you need to get both device identifiers:
120120
```java
121-
private void getSerialNumber()
121+
private void getDevicesIdentifiers()
122122
{
123+
// We first ask for the SerialNumber
123124
DIHelper.getSerialNumber(this, new IDIResultCallbacks() {
124125
@Override
125126
public void onSuccess(String message) {
126127
// The message contains the serial number
127128
String mySerialNumber = message;
129+
// We've got the serial number, now we can ask for the IMEINumber
128130
getIMEINumber();
129131
}
130132

131133
@Override
132134
public void onError(String message) {
133135
// An error occured
134136
// Do something here with the error message
135-
// Then call the getIMEINumber method
137+
// We had an error with the Serial Number, but it
138+
// doesn't prevent us from calling the getIMEINumber method
136139
getIMEINumber();
137140
}
138141

0 commit comments

Comments
 (0)