こんにちは、バックグラウンド アプリケーションからグローバルに画面をプッシュすることを制御したいと思います。現在、MainScreen を拡張する Screen を作成しました。この画面をグローバルに表示したい。pushGlobalScreen(Screen to push, int priority, flag);
次々に表示される2つの画面がある場合、私はその作業を使用
しています。しかし、私が実際にやりたいことはです。最初の画面を閉じてから、次の画面を表示したいなど。それで、これを達成する方法。
ここで私はそれをより明確に説明しています
現在の時刻がアラーム時刻と一致する場合にデータベースで時刻をチェックしているシナリオ全体を説明し、同時に複数のアラームが保存されていると仮定して画面をプッシュします。
while (Checking into database for time){
if (databasetime == current time ) {// let suppose there is more than
//one alarm save for the same time
synchronized (getEventLock()) {// This will call one after other but i want to first
UiEngine ui = Ui.getUiEngine();
ui.pushGlobalScreen(new AlarmScreen() , 1, UiEngine.GLOBAL_QUEUE);//
//Here i want to stop. I want user to close the screen then
// i want to push again the screen. As we do in
// PushModalScreen(Screen) How can i block
//pushGlobalScreen(new AlarmScreen() , 1, UiEngine.GLOBAL_QUEUE);
}
}
}
私の要件は今では明確だと思います。それは...ですか??