Hello,
I'm trying to use a NavigableListActivity as follows: If the user is silent, I move to the next item in the list and announce it. If they are silent on the last item, I want to exit out of the list. It is working fine, except I can't seem to cancel the Activity in code. It loops back to the first item in the list. It never cancels.
I need to use the code in this manner. I am replacing legacy functionality and the users are accustomed to it.
Any suggestions?
if (e.HistoryItem != null)
{
if (e.HistoryItem.GetType().ToString() == "Microsoft.SpeechServer.Dialog.SilenceHistoryItem")
{
if (navigableListActivity1.CurrentItem == navigableListActivity1.Items.Count - 1)
{
navigableListActivity1.Exit();
return;
}
else
{
navigableListActivity1.Next();
}
}
}