How to use browserFieldConfig in BrowserField

Hello guys, when I click on the link given in the browserfield, it must identify and launch an app and I used BrowserFieldConfig for that, and I'm trying to get my URL required in handleNavigationRequest().

If I get required URL must identify and launch an application, or else it should display the requested URL page. I used the code is

   BrowserFieldConfig bfc = new BrowserFieldConfig();
        bfc.setProperty(BrowserFieldConfig.NAVIGATION_MODE,BrowserFieldConfig.NAVIGATION_MODE_CARET);
        bfc.setProperty(BrowserFieldConfig.CONTROLLER, new BrowserFieldController(){
          public InputConnection handleResourceRequest(BrowserFieldRequest request) throws Exception {
                   return (InputConnection)Connector.open(request.getURL());
              }
              public void handleNavigationRequest(BrowserFieldRequest request) throws Exception {
                 System.out.println("HandleNavigationRequest");
               }
        });

        browserField = new BrowserField(bfc);
        browserField.requestContent(urlFieldValue);
        browserField.addListener(browserListener);
        add(browserField);

I am not gettting the page displayed? Why? What I need to adjust something?, whenever I use browserFieldConfig in the browserfield, I don't get the requested page in browserfield? What should I do? If so, how?

Similarly, I have tried in the documentLoaded() of the browserFieldListener, it displays page with link in it.and again once when I click on the particularLink, it shows protocolHandlerException.AnyIdeas on how can it be clear this exception?

Concerning

Rakesh Shankar.P

I don't know a lot about BrowserField 2, but I think that the way you use it is not correct.  I would recommend that you download and review Dev49 of DevCon 2010 (search the forum for links).  It explains what to customize.  In this case, for example, you actually need a treatment in your handleNavigationRequest to the application - as a process

.setContent (...).

Download the session anyway, examine it, especially the section titled:

Management of Navigation and resource requests

Tags: BlackBerry Developers

Similar Questions

  • How to use FaceTime with Siri

    I you would Siri have been able to dial phone numbers using FaceTime, so my question is, is it possible? And if so, how?

    Hey MichaelnAvallone,

    Thank you for reaching out to help through Apple Support communities. Looks like you are wanting to make calls FaceTime with Siri. If so, I'd be happy to explain how to make this happen. First, you'll want to press on and hold the Home button or say "Hey Siri" to activate Siri. Then, for example, you can simply say, "make an audio call FaceTime to MOM" and Siri will only start a FaceTime call audio. If you say 'FaceTime Mom' Siri will begin a FaceTime call with video of this contact.

    The link below shows the ways to learn how to use Siri.

    Use Siri on your iPhone, iPad or iPod touch

    Kind regards.

  • How to use iCloud

    HI, please help a total techaphobe. I need to store my photos in iCloud (that is already installed on my iPad, I have Apple ID n all). I tried to select the photos, but there is no option, then save in the cloud. Perhaps they are there already as the AutoSave is enabled, in which case, I need to have access to make sure that there so I can remove from iPad. There is nothing in "iCloud Drive" (I have no idea what Drive is in iCloud). All I can find on the line is either too complicated (it can not be that complicated) try to put myself in place (which I am already), or is completely irrelevant, even the things in apple support. I'm sure it's there somewhere, but it seems that I have to trawl through so much, I hope one of us guys can help me with a frank explanation...

    Go to iCloud.com on a browser and click the Photos app to see if your photos are indeed already in iCloud.  You can also check the Photos app on your iPad as well.

    Another thing to note, you can't delete photos from your iPad, because, unfortunately, is not how iCloud works.  It's a synchronization service and not an archival.  There is not your traditional cloud based.  Which means that it syncs your data on all of your devices that have them at your disposal.  Remove a device and it went on all devices.

    Hope that helps.

    How to use iCloud drive

  • How to use audio only AirPlay on iOS10?

    HI guys, maybe I'm stupid, but I can't find how to use streams of music after upgrade.

    UseCase:

    -listen to music through headphones on my way back

    -When reached on home stereo and activate AirPlay

    iOS9 - low slide menu - AirPlay - Audio sent to Apple TV and stereo, play music (took about 3 seconds)

    iOS10 - slide down menu - AirPlay - there is only activate AirPlay with mirroring. That is originally for my TV to turn on automatically and also phone is drained and you know - I want to use only phone no stream all on television.  (Past 10 minutes, and can not find how to do this)

    Any tips?

    Hello Tomas Vrabec,.

    Thank you for using communities of Apple Support. Information you provided, it looks like you are unable to use AirPlay to play only mirroring content after upgrading to iOS 10. Surely, I understand your concern, especially since it worked as you need on the previous version of the software. I'm happy to help you.

    Looks like you are taking the correct steps. First of all, I recommend you restart. This can solve a lot of unexpected errors. Use the restart below steps if necessary.

    1. Press and hold the sleep/wake button until the Red slider appears.
    2. Drag the slider to turn off your device completely off.
    3. Once the device turns off, press and hold the sleep/wake button again until you see the Apple logo

    Restart your iPhone, iPad or iPod touch

    If the problem persists, please use the steps and pictures in the link below for more information on troubleshooting:

    Get help with AirPlay and AirPlay Mirroring on your iPhone, iPad or iPod touch

    Have a wonderful day!

  • With no headphone jack, how to use the iPhone in my car 7

    Okay, so here's the challenge.  I have a power source and a headphone and not Bluetooth.  It works perfectly with iPhones before 7.  But with 7, it isn't possible to use the same configuration I had for years.  I own my car, and I have no interest in buying a new car just to support a new phone.  And since this will be a problem for the years to come if I stay with Apple, I would like to know what are the solutions are available.

    So, how to use the new iPhone 7 while remaining responsible and using my car speakers?  Dongles Bluetooth that I need to reload, it's probably not.

    Thus, looking for ideas that might have people.  I can't be the only one with this concern.

    It's almost a certainty that a third party adapter will appear quickly. The new Macbook has a single port usb - c and people asked the same question, 'how to load and use USB at the same time." There are today dozens of solutions for the Macbook, and then it will be with the iPhone 7. An adapter with a 3.5 mm jack and a port of loading Lightening would be my guess. Kickstarter entrepreneurs are probably already working on it.

  • How to use and control the tabs?

    Sorry for such a general question, but I use Firefox with older versions of Mac OS x for years and have just been struck by this brand new and I have no idea on your tabs, "new tab page" etc. Can you just send me some documents so I can understand what they are and how to use them?

    All I see on my headers Ff are all sorts of legs that have no relevance to me, like 'how to stop Firefox from... '. "(twice), a few other symbols Ff and other"tabs"I don't know everything." All the do is filling up a bar line.

    Thank you-

    You are welcome.

    If you have any other questions feel free to ask them.

  • How to use the capture and the print button

    I tried to figure out how to use the capture and the "print" button, or add or what you call. I press it and the whole page of a different color changes, so I try to cut the section I want but I don't know how to send it to the printer. Can someone help me with this. I'm not at savvy with tech stuff, but when I find a recipe or something and it doesn't have an option to print a certain area, I can't understand how to use it?

    Thank you

    Andi Starbuck

    That happens to me is, I click and drag to make a rectangle of yellow selection, and as soon as I raise my finger on the mouse button, the part I've selected is captured as an image, a new tab opens and preview before printing, the image display. I can use the installation of the Page or simply print. But if I close the preview, this temporary image vanishes and I'm back on the page where I started. You see something different?

  • Double mail.ru autification how to use mail.ru account?

    I have double autification of mail.ru , phone number.
    And I need to use Thunderbird.
    How do I?

    Thunderbird does not work with the authentication of step 2. Ask your provider how to use their service with a normal email client. An account Google can generate what they call a specific Application password. Maybe your provider has something similar.

  • What is the menu item "Bring everything to the front ', and how to use it?

    What is the menu item "Bring everything to the front ', and how to use it?

    It's a selection in the window menu and means to bring all open windows of this application at the front and push all the windows open for other applications behind. This makes access to the easiest application windows. However, if you don't have that one window open in an application, then the menuitem does nothing.

  • How to use an install.xpi configuration file to configure email data

    Manual installation of my e-mail account failed because Thunderbird search my domain name and is not in its database. If my webhost gave me a file of automatic configuration for Thunderbird for my e-mail, called install.xpi - account but how to use this file? I can't double-click them in Windows to do anything. Thunderbird program, he wants to create a new account, but I can't do anything else in it as importing files.

    How to use the install.xpi file so it creates my e-mail account with the appropriate configuration variables? Thanks for your help.

    Launch Thunderbird, close the wizard, goto the Add-ons, select Tools menu (alt + T)

    There is a small button to the left of the search window. Click this button and select install module file and navigate to your xpi file, select it and you leave.

  • How I use imported from Internet Explorer FAVORITES

    I use Google Chrome. However, I get ads, hinder my work. As I can not get rid of those ads, I want to try Mozilla Firefox. I imported Internet Explorer Favorites, but I don't know how to use them. I don't see any button or icon to that effect. I would appreciate your help.

    FB321

    You can usually find the Favorites IE imported into a folder ("Internet Explorer") at the bottom of the file Menu bookmarks or Favorites bar folder (bookmarks > show all bookmarks).

    If there are problems with importing IE bookmarks in Firefox, then export favorites in Internet Explorer to a HTML file and import this file in the Firefox Bookmarks Manager.

    If you don't have the menu bar in Internet Explorer, and then right-click on the toolbar above to activate the menu bar.

    • Export Favorites in Internet Explorer to a file (bookmarks.html) HTML:
      File > import and export
    • Import HTML file in Firefox:
      Bookmarks > show all bookmarks > import and backup > import bookmarks HTML

    See "Import from another browser" and "import from file":

  • I created a template. How to use it?

    I created a template for an e-mail message that I want to customize many different recipients. The model is in the 'Template' folder How to use this template? Thank you!

    _ http://KB.mozillazine.org/Thunderbird: _FAQs_:_Using_Templates

  • How to use Google Fonts in email?

    Hello

    I would like to know how I use the google font in my emails.

    We use ubuntu police and I see the fonts on my computer but after sending an email change fonts.

    I use the SmartTemplate4 addon.

    I hope that all f you know the answer!

    Thanks in advance

    It would be useful if you have linked the articles you found before you write. If I know you already read about it, I would have not spent time looking for you.

    The items I linked to are quite detailed. I doubt that this would trigger the SPAM detection, though - that's just my opinion of many years dealing with SPAM.

    Regarding your last question, well, only you know why you would need it in the first place. It took years for people (and the email clients) even consider using HTML, fonts are another component of this discussion (ie. content vs presentation/container). Personally, I don't receive e-mails with too much formatting.

  • How to use the highlighter to text on web pages

    I would like to point out some small print on a web page of banking services to the email. Printing is too small and will be interrupted if not highlighted. I installed the text highlight add on on my toolbar, but do not know how to use it.

    Hi Trease,
    Make sure it is not disabled in the subject: your window of browser addons page.

    There are some addons with that name, but I would also take a glance to the description on the addons.mozilla.org site if you still.

  • How to use spell checking with magic mouse

    How to use spell checking with magic mouse

    Hello

    The mouse is not intended to be used with the spell checker.

    The mouse settings available in system preferences > mouse

    Spelling and grammar can be checked in the Edit menu in most applications.

    In addition, shortcuts keyboard.

    Command:

    And the command;

Maybe you are looking for

  • I need to connect to two pieces of identification different apple on my new macbook

    When I was first put in place the macbook a few minutes ago, he asked for my ID... i of apple in the one I use to i tunes but when I try to logout of in inside iCloud for you connect with the id correct apple for iCloud, it does not give me the optio

  • WiFi works does not even after installing drivers

    Recently I bought HP compaq 15-s006TU and the wifi does not work in windows. Press the keyboard wifi is always orange. I tried to download and install the drivers wifi and bluetooth from the following links: http://h20566.www2.HP.com/portal/site/hpsc

  • FPGA issues on cRIO-9004

    Thus, Ive played with a cRIO-9004 with FPGA. But there is a problem, whenever I place a node FPGA of e/s on the block diagram that it does not work. It emits a signal null and says this in the context-sensitive help "LabVIEW does not support the I/O

  • exceptional E Olesys error in the module Exe H. Csmiley to 0003c0f5

    As indicated in the title, I get this box popping up whenever I start the computer?

  • I can't uninstall iTunes or quicktime... HELPPP

    Hello I hope you can help, im out of my mind trying to solve this problem. It all started when I tried to buy a song, he came to say component 42404 is missing. So I reinstalled, and that did not help at all, he said that my installation itunes.msi i