Search in sources :

Example 1 with UiApplication

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);
}
Also used : UiApplication(net.rim.device.api.ui.UiApplication)

Example 2 with UiApplication

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);
        }
    }
}
Also used : UiApplication(net.rim.device.api.ui.UiApplication)

Example 3 with UiApplication

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();
}
Also used : UiApplication(net.rim.device.api.ui.UiApplication)

Example 4 with UiApplication

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);
}
Also used : Screen(net.rim.device.api.ui.Screen) UiApplication(net.rim.device.api.ui.UiApplication)

Example 5 with UiApplication

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();
}
Also used : UiApplication(net.rim.device.api.ui.UiApplication)

Aggregations

UiApplication (net.rim.device.api.ui.UiApplication)5 Screen (net.rim.device.api.ui.Screen)1