I have added this sample to my app and updated it on internal test track.
While try to install an on demand dynamic feature its downloaded successfully but stuck in installing state for infinite time without showing any error message.
Below is the code for SplitInstallStateUpdatedListener:
public void onStateUpdate(SplitInstallSessionState state) {
boolean multiInstall = state.moduleNames().size() > 1;
List list=state.moduleNames();
Iterator iter = list.iterator();
while(iter.hasNext()) {
String featureName = (String) iter.next();
switch (state.status()) {
case SplitInstallSessionStatus.DOWNLOADING:
updateProgressMessage("Downloading... ");
break;
case SplitInstallSessionStatus.REQUIRES_USER_CONFIRMATION:
updateProgressMessage("Require User confirmation... ");
break;
case SplitInstallSessionStatus.INSTALLED:
onSuccessfulLoad(featureName, !multiInstall);
break;
**case SplitInstallSessionStatus.INSTALLING:**
updateProgressMessage("Installing... ");
break;
case SplitInstallSessionStatus.FAILED:
updateProgressMessage("Sorry, Installation Failed due to error " + state.errorCode());
break;
}
}
}
Please help me to resolve this...