use of net.rim.device.api.ui.UiApplication in project google-authenticator by google.
the class AuthenticatorScreen method pushScreen.
private void pushScreen(Screen screen) {
UiApplication app = (UiApplication) getApplication();
app.pushScreen(screen);
}
use of net.rim.device.api.ui.UiApplication in project Samples-for-Java by blackberry.
the class PhoneIndicator method invokeLater.
private void invokeLater(Runnable runnable) {
if (_app != null) {
UiApplication app = (UiApplication) _app.get();
System.out.println(app.toString());
if (app != null) {
app.invokeLater(runnable);
}
}
}
use of net.rim.device.api.ui.UiApplication in project Samples-for-Java by blackberry.
the class YoutubeClient method main.
/**
* @param args
*/
public static void main(String[] args) {
EventLogger.register(UID, "com.blackberry.toolkit.sample.youtube.YoutubeClient", EventLogger.VIEWER_STRING);
UiApplication app = new YoutubeClient();
app.enterEventDispatcher();
}
use of net.rim.device.api.ui.UiApplication in project google-authenticator by google.
the class PinListField method pushScreen.
void pushScreen(Screen s) {
Screen screen = getScreen();
UiApplication app = (UiApplication) screen.getApplication();
app.pushScreen(s);
}
use of net.rim.device.api.ui.UiApplication in project google-authenticator by google.
the class AuthenticatorApplication method startApplication.
private static void startApplication(Uri uri) {
UiApplication app = new AuthenticatorApplication();
AuthenticatorScreen screen = new AuthenticatorScreen();
app.pushScreen(screen);
if (uri != null) {
screen.parseSecret(uri);
screen.refreshUserList();
}
app.enterEventDispatcher();
}
Aggregations