diff --git a/DeviceIdentifiersWrapper/src/main/java/com/zebra/deviceidentifierswrapper/DIProfileManagerCommand.java b/DeviceIdentifiersWrapper/src/main/java/com/zebra/deviceidentifierswrapper/DIProfileManagerCommand.java index 24da9b8..5fa76ee 100644 --- a/DeviceIdentifiersWrapper/src/main/java/com/zebra/deviceidentifierswrapper/DIProfileManagerCommand.java +++ b/DeviceIdentifiersWrapper/src/main/java/com/zebra/deviceidentifierswrapper/DIProfileManagerCommand.java @@ -73,6 +73,11 @@ public void onStatus(EMDKManager.StatusData statusData, EMDKBase emdkBase) { { String errorMessage = "Error when trying to retrieve ProfileManager: " + getResultCode(statusData.getResult()); logMessage(errorMessage, EMessageType.ERROR); + + // Timed out, try again + if (statusData.getResult() == EMDKResults.STATUS_CODE.FEATURE_NOT_READY_TO_USE) { + onEMDKManagerRetrieved(mEMDKManager); + } } } }; @@ -96,7 +101,7 @@ public void onClosed() { public DIProfileManagerCommand(Context aContext) { super(aContext); mSettings = new DICommandBaseSettings(){{ - mTimeOutMS = 20000; + mTimeOutMS = 120000; mEnableTimeOutMechanism = true; mCommandId = "DWProfileManagerCommand"; }};