I tried to push a Progressbar from TextPickerDelegate.onTextEntered, but the ProgressBar doesn't appear on screen on the device, while it does on the simulator.
Through trial and error I was able to work around the issue by pushing the view twice:
function onTextEntered(text, changed) { var progressBar = new WatchUi.ProgressBar("Searching...", null); WatchUi.switchToView(progressBar, SearchProgressDelegate(), WatchUi.SLIDE_IMMEDIATE); WatchUi.pushView(progressBar, new SearchProgressDelegate(), WatchUi.SLIDE_IMMEDIATE); return true; // This is not documented in the SDK!!! }
It also seems that there's a different behavior for return true/false that is not documented in the SDK.