transition.setIntAttribute(TransitionContext.ATTR_DURATION, 250);
transition.setIntAttribute(TransitionContext.ATTR_KIND, TransitionContext.KIND_OUT);
engine.setTransition(customSpinnerPopup, null, UiEngineInstance.TRIGGER_POP, transition);
// Push the screen to the foreground
uiApp.pushModalScreen(customSpinnerPopup);
Object[] result = new Object[1];
// Record the result that the user chose. If they didn't choose an
// option return undefined
if(customSpinnerPopup.isSet()) {