@@ -211,7 +211,24 @@ Sample code if you need to get both device identifiers:
211211 // The message contains the serial number
212212 String mySerialNumber = message;
213213 // We've got the serial number, now we can ask for the IMEINumber
214- getIMEINumber(context);
214+ DIHelper . getIMEINumber(contextnew IDIResultCallbacks() {
215+ @Override
216+ public void onSuccess(String message) {
217+ // We've got an EMEI number
218+ String myIMEI = message;
219+ }
220+
221+ @Override
222+ public void onError(String message) {
223+ // An error occurred
224+ }
225+
226+ @Override
227+ public void onDebugStatus(String message) {
228+ // You can use this method to get verbose information
229+ // about what's happening behind the curtain
230+ }
231+ });
215232 }
216233
217234 @Override
@@ -220,7 +237,23 @@ Sample code if you need to get both device identifiers:
220237 // Do something here with the error message
221238 // We had an error with the Serial Number, but it
222239 // doesn't prevent us from calling the getIMEINumber method
223- getIMEINumber(context);
240+ DIHelper . getIMEINumber(contextnew IDIResultCallbacks() {
241+ @Override
242+ public void onSuccess(String message) {
243+ // We've got an EMEI number
244+ String myIMEI = message;
245+ }
246+
247+ @Override
248+ public void onError(String message) {
249+ // An error occurred
250+ }
251+
252+ @Override
253+ public void onDebugStatus(String message) {
254+ // You can use this method to get verbose information
255+ // about what's happening behind the curtain }
256+ });
224257 }
225258
226259 @Override
0 commit comments