Skip to content

Commit

Permalink
Merge pull request #6 from ltrudu/master
Browse files Browse the repository at this point in the history
Update Readme.md
  • Loading branch information
ltrudu authored Jul 5, 2022
2 parents e65a041 + 567d077 commit 055ac23
Showing 1 changed file with 35 additions and 2 deletions.
37 changes: 35 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,24 @@ Sample code if you need to get both device identifiers:
// The message contains the serial number
String mySerialNumber = message;
// We've got the serial number, now we can ask for the IMEINumber
getIMEINumber(context);
DIHelper.getIMEINumber(context, new IDIResultCallbacks() {
@Override
public void onSuccess(String message) {
// We've got an EMEI number
String myIMEI = message;
}

@Override
public void onError(String message) {
// An error occurred
}

@Override
public void onDebugStatus(String message) {
// You can use this method to get verbose information
// about what's happening behind the curtain
}
});
}

@Override
Expand All @@ -220,7 +237,23 @@ Sample code if you need to get both device identifiers:
// Do something here with the error message
// We had an error with the Serial Number, but it
// doesn't prevent us from calling the getIMEINumber method
getIMEINumber(context);
DIHelper.getIMEINumber(context, new IDIResultCallbacks() {
@Override
public void onSuccess(String message) {
// We've got an EMEI number
String myIMEI = message;
}

@Override
public void onError(String message) {
// An error occurred
}

@Override
public void onDebugStatus(String message) {
// You can use this method to get verbose information
// about what's happening behind the curtain }
});
}

@Override
Expand Down

0 comments on commit 055ac23

Please sign in to comment.