Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6974253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:12:48+00:00 2026-05-27T17:12:48+00:00

This is may be old question but i dont get proper solution if it

  • 0

This is may be old question but i dont get proper solution
if it is wrong please ignore otherwise please halp me

I have one main screen with two verticleManagers

1)For browserField
2)one button

first i add successfully My Browserfield to First verticlemanger and also add button to second verticlemanager

finally two verticlemanager added to main screen.

in OS6 i dont get any problem it works fine

but in OS5 i got problem that is

once the Browserfield is getting focus, it never release its focus so i am unable to navigate downside of the Browserfield. Means i am unable to click on blackberry advertisement Banner.i am unable to navigate down from browserfield using trackpad

this is my sample code

class browserScreen extends MainScreen
{
    String url;
    BrowserField browserField;
    public browserScreen() {
        VerticalFieldManager main_mgr=new VerticalFieldManager(){
            protected void sublayout(int maxWidth, int maxHeight) {
                super.sublayout(Display.getWidth(),Display.getHeight());
                setExtent(Display.getWidth(),Display.getHeight());
            }
        };

        VerticalFieldManager browserfield_mgr=new VerticalFieldManager(){
            protected void sublayout(int maxWidth, int maxHeight) {
                super.sublayout(Display.getWidth(),Display.getHeight()-50);
                setExtent(Display.getWidth(),Display.getHeight()-50);
            }
        };
        url="http://www.google.com";
        BrowserFieldConfig browserFieldConfig = new BrowserFieldConfig();
        browserFieldConfig.setProperty(BrowserFieldConfig.NAVIGATION_MODE, BrowserFieldConfig.NAVIGATION_MODE_POINTER);
        browserFieldConfig.setProperty(BrowserFieldConfig.JAVASCRIPT_ENABLED,Boolean.TRUE);
        browserFieldConfig.setProperty(BrowserFieldConfig.ALLOW_CS_XHR,Boolean.TRUE);
         browserField=new BrowserField(browserFieldConfig);
         browserField.requestContent(url);
         browserfield_mgr.add(browserField);
        main_mgr.add(browserfield_mgr);
        VerticalFieldManager button_mgr=new VerticalFieldManager(){
            protected void sublayout(int maxWidth, int maxHeight) {
                super.sublayout(Display.getWidth(),50);
                setExtent(Display.getWidth(),50);
            }
        };
        button_mgr.add(new SeparatorField());
        ButtonField btn=new ButtonField("BUTTON MANAGER");
        button_mgr.add(btn);
        main_mgr.add(button_mgr);
        add(main_mgr);

    }
}

any help can be appreciated

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:12:49+00:00Added an answer on May 27, 2026 at 5:12 pm

    After i googled a lot i conclude that This is OS 5 issue. it wont resolve it in OS5. It resolved In OS6. You have to provide a way to move the focus off the BrowserField yourself. I have tried a variety of mechanisms to do this, like detecting Escape in the Screen’s keyChar method, the best I have found so far is to use the Menu and give the users the option of swapping focus out of the BrowserField. In general I do not recommend sharing the Screen between a Web Field and any other.

    public class LoadingScreen extends MainScreen
    {
        VerticalFieldManager vertical;
        HorizontalFieldManager hor;
        String url;
        BrowserField browserField;
        Banner bannerAd ;
        private static boolean flag=false;
        public LoadingScreen() 
        {   
    //      
    
        VerticalFieldManager Veret=new VerticalFieldManager(Manager.NO_VERTICAL_SCROLL|Manager.NO_HORIZONTAL_SCROLL){
            protected void sublayout(int maxWidth, int maxHeight) {
    
                super.sublayout(Display.getWidth(),Display.getHeight());
                setExtent(Display.getWidth(),Display.getHeight());
            }
        };
        //Veret.setBackground(BackgroundFactory.createSolidBackground(Color.BLACK));
            VerticalFieldManager main_mgr=new VerticalFieldManager(Manager.NO_VERTICAL_SCROLL|Manager.NO_HORIZONTAL_SCROLL){
                protected void sublayout(int maxWidth, int maxHeight) {
    
                    super.sublayout(Display.getWidth(),Display.getHeight()-50);
                    setExtent(Display.getWidth(),Display.getHeight()-50);
                }
            };
    
            url="http://www.google.com";
            BrowserFieldConfig browserFieldConfig = new BrowserFieldConfig();
            browserFieldConfig.setProperty(BrowserFieldConfig.NAVIGATION_MODE, BrowserFieldConfig.NAVIGATION_MODE_POINTER);
            browserFieldConfig.setProperty(BrowserFieldConfig.JAVASCRIPT_ENABLED,Boolean.TRUE);
            browserFieldConfig.setProperty(BrowserFieldConfig.ALLOW_CS_XHR,Boolean.TRUE);
             browserField=new BrowserField(browserFieldConfig);
             browserField.requestContent(url);
    
             main_mgr.add(browserField);
             Veret.add(main_mgr);
    
             final Bitmap ad_bg=Bitmap.getBitmapResource("add_bg.png");
             VerticalFieldManager add_back=new VerticalFieldManager(USE_ALL_WIDTH|Field.FOCUSABLE){
                 protected void paint(Graphics graphics) {
                    graphics.drawBitmap(0, 0, ad_bg.getWidth(), ad_bg.getHeight(), ad_bg, 0, 0);
                    super.paint(graphics);
                }
                 protected void sublayout(int maxWidth, int maxHeight) {
    
                    super.sublayout(ad_bg.getWidth(), ad_bg.getHeight());
                    setExtent(ad_bg.getWidth(), ad_bg.getHeight());
                }
             };
             try{
                   Bitmap customPlaceholder = Bitmap.getBitmapResource("add_bg.png");
                   bannerAd = new Banner(31848, null, 100000, customPlaceholder); 
                   bannerAd.setBorderColor(Color.RED);
                   int i=(Display.getWidth()-320)/2;
                   bannerAd.setPadding(0, 0, 0, i);
                   bannerAd.setBannerTransitionColor(Color.RED);
                   bannerAd.setMMASize(Banner.MMA_SIZE_EXTRA_LARGE); 
                  // Dialog.inform(""+bannerAd.getMMASize());
    
               }catch (Exception e) {
                   Dialog.inform(e.getMessage());
            }
            add_back.add(bannerAd);
            Veret.add(add_back);
               add(Veret);
    
        }
        protected void makeMenu(Menu menu, int instance) 
           { 
    
            int i=Integer.parseInt(StartUp.getOsVersion().substring(0, 1));
                if(i<6)
                menu.add(_testItem);
           }
    
         private MenuItem _testItem = new MenuItem("Go to Advertise", 100, 9)
            {
                    public void run(){
    
                        bannerAd.setFocus();
    
                     }
            };
    
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question may be old, but I couldn't think of an answer. Say, there
This may be a very old, many times asked question. But I am not
This question may seem stupid, but, so be it! I have a stupid problem
This may be old news but back in March 2009, this article, Model-View-ViewModel In
This may seem like a daft question, but i was wondering about how to
This may be a doozy, but does anyone have an idea how to: Pass
--EDIT-- I believe this is a valid question that may have multiple answers (as
This may be a stupid question, but here it goes. Is Google Maps a
I realize this may be a reproduce of a question from '09 OLD LINK
This may seem like a basic question, but I am not getting how to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.