Package net.rim.blackberry.api.browser

Examples of net.rim.blackberry.api.browser.BrowserSession


        pushScreen(new EnterKeyScreen());
      }
    };
    MenuItem termsItem = new MenuItem(sResources, TERMS_MENU_ITEM, 0, 0) {
      public void run() {
        BrowserSession session = Browser.getDefaultSession();
        session.displayPage(TERMS_URL);
      }
    };
    MenuItem privacyItem = new MenuItem(sResources, PRIVACY_MENU_ITEM, 0, 0) {
      public void run() {
        BrowserSession session = Browser.getDefaultSession();
        session.displayPage(PRIVACY_URL);
      }
    };
    menu.add(enterKeyItem);
    if (!isTimerSet()) {
      MenuItem refreshItem = new MenuItem(sResources, REFRESH_MENU_ITEM, 0, 0) {
        public void run() {
          refreshUserList();
        }
      };
      menu.add(refreshItem);
    }
    if (mUpdateAvailable) {
      MenuItem updateItem = new MenuItem(sResources, UPDATE_NOW, 0, 0) {
        public void run() {
          BrowserSession session = Browser.getDefaultSession();
          session.displayPage(Build.DOWNLOAD_URL);
          mStatusText.setText("");
        }
      };
      menu.add(updateItem);
    }
View Full Code Here


        return isMarked;
    }

    // Invokes the browser on the given URL
    private void invokeBrowser( String url ) {
        BrowserSession bs = null;
        bs = Browser.getDefaultSession();
        bs.displayPage( url );
    }
View Full Code Here

    private void invokeBrowser( final Object arg ) throws Exception {
        if( arg instanceof BrowserArgumentsObject ) {
            final BrowserArgumentsObject b = (BrowserArgumentsObject) arg;
            final String url = b.getUrl();
            BrowserSession bs = null;

            if( b.getTransportObject() == null ) {
                bs = Browser.getDefaultSession();
            } else {
                bs = Browser.getSession( b.getTransportObject().getUID() );
            }

            bs.displayPage( url );

        } else {
            try {
                ApplicationManager.getApplicationManager().launch( BROWSER_URL );
            } catch( final ApplicationManagerException e ) {
View Full Code Here

        /**
         * @see UiAction#runAction()
         */
        protected void runAction() {
            final BrowserSession browser = Browser.getDefaultSession();

            if (browser != null) {
                // Start a browser session with the URL in the data object
                browser.displayPage(_dataObject.getData());
            }
        }
View Full Code Here

TOP

Related Classes of net.rim.blackberry.api.browser.BrowserSession

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.