4.6 browser field API

I could get the last browser API 5.0 Field2 working in my java application... but my curve is not compatible 5.0 its 4.6

SO I tried to use the API to the browser of 4.6... 2 problems

1. I'm not able to find an easy to follow example... I'm not a pro

2. in case I deploy it on my curve, that I have to get the code... sign to use the application on my phone?

can someone help pls... any help is appreciated.

Thank you.

Kind regards

Kedar

I suggest that you are very familiar with the facilities offered here:

www.blackberrydeveloper.com

Especially the resources section - you will find some useful stuff in there, including this:

http://NA.BlackBerry.com/eng/developers/javaappdev/codekeys.jsp

which explains how to get key signing and this:

http://www.BlackBerry.com/DevMediaLibrary/view.do?name=HowtoembedtheBrowser

explains how to integrate a browser field in your application by using OS 4.6 and earlier.

Tags: BlackBerry Developers

Similar Questions

  • Question about field API browser

    I want to use the function of net.rim.device.api.browser.field.HistoryEvent against individual members of a group of fi statements (that are called by action on a ButtonField) so that no browser history accumulates in the standard BlackBerry browser.

    The if - else statements look like this:

    If (field == IMAButton) {}
    Private site = Browser.getDefaultSession ();
    site.displayPage ('http://www.whatever.com');
    }

    The JAVADOC for HistoryEvent reads as follows:

    HistoryEvent

    public HistoryEvent(Object src,                    String url,                    int type)
    

    Constructs a new instance of HistoryEvent for the Remove of URL.

    This constructor assumes that the event is created as a result of programmatic action.

    Parameters: src - Source for this event. URL - URL to add or remove, this story.

    type: Type of event history; must be TYPE_ADD_URL or TYPE_REMOVE_URL. 

    Since: JDE 4.0.0

    _____________________________________________________________________________________

    I am just placing the code at the bottom of each of the code if/else blocks so that the URL is removed from the browser history as soon as it is created but not having luck. (Usually, I get an error complaining that the TYPE_REMOVE_URL cannot be resolved.)

    I searched the forum by using search terms of 'Historic event', "HistoryEvent" and "Clearing browser history", but it doesn't seem to be anything else.

    I tried to use the ButtonField, private, Member Browser.getDefaultSession () &
    site.displayPage as a source for the event - I'm being literal object CBC requirement?

    This is my 2nd request for help. Can anyone give me a suggestion on how to proceed?

    In response to the earlier thread that I posted, I said that it is not possible to use this feature against the standard Blackberry browser, that's why I couldn't get it to work.

  • Invoking the application when you click on a link in the browser field

    Hi all

    Is it possible to invoke the application by clicking on a link/button to the browser field?

    The link/button would be a part of the web page displayed in a browser field. If the user clicks on it, it should be taken to the corresponding screen in the native application.

    Can someone let me know how this can be done in BlackBerry?

    Thank you much in advance.

    I could it implement successfully with the help of HTTPFilterRegistry (net.rim.device.api.io.http.HttpFilterRegistry).

    An example of the same project is available in the samples of BlackBerry in the Eclipse IDE (HttpFilterDemo).

  • How to open a link in the BB native browser from an application with a browser.field on OS 4.6

    Hi all

    I hope this is the right place for this question.

    I develop a widget that works fine on OS 5, but my client requested a 4.6 devices of the OS, so the easy way for us was to make an application that calls a browser.field and load the widget inside files (make some improvements on the css and JS). It works very well.

    Our problem now is that we have a list of items that contains some information like telephone numbers, address and link to a Web site. How can we open this last link on the native blackberry browser? I mean, close the application and open the browser. I need to do it in an html tag, because the link to the web site is located on the page that appears on the browser.field. (just like the tag such for example.)

    I hope that I have explained to me very well and you can understand my problem.

    If anyone has an idea on how to solve this problem, let me know, I'll be really happy.

    In BrowserField, you are notified whenever a user requests a new resource such as browsing to a URL.  You can detect when there is a full qualified URL that is being requested, and then call the BlackBerry browser rather than provide the data flow for the return URL to BrowserField.  At this point, you may also close your application if you wish.

    If the rest of your assets is local, you should probably receive a complete style from the URL for them as an external link and so be able to detect an external link.

  • Version 2012-WHY THE BROWSER FIELD remains EMPTY

    OK, so this question came about the support forum, but I can't seem to find solutions to the problem.

    Why THE FIELD BROWSER left EMPTY WHEN U RUN IT... What should you do to make a Web site to appear?

    PLEASE HELP ANYONE? !!

    import net.rim.device.api.browser.field2.*;import net.rim.device.api.ui.*;import net.rim.device.api.ui.container.*;
    
    public class BrowserFieldDemo extends UiApplication{    public static void main(String[] args)    {        BrowserFieldDemo app = new BrowserFieldDemo();        app.enterEventDispatcher();    }
    
        public BrowserFieldDemo()    {        pushScreen(new BrowserFieldDemoScreen());    }}
    
    class BrowserFieldDemoScreen extends MainScreen{    public BrowserFieldDemoScreen()    {        BrowserFieldConfig myBrowserFieldConfig = new BrowserFieldConfig();        myBrowserFieldConfig.setProperty(BrowserFieldConfig.NAVIGATION_MODE,BrowserFieldConfig.NAVIGATION_MODE_POINTER);        BrowserField browserField = new BrowserField(myBrowserFieldConfig);
    
            add(browserField);        browserField.requestContent("http://www.blackberry.com");    }}
    

    FOR THE DEVELOPING WORLD ALL BLACKBERRY.

    If you were like me and you've had this problem... Please, try this, it worked for me. (Before you launch the demo of browserfield app do this)

    Options > network connections and > mobile network

    change the network of GSM/UMTS technology

    CHANGE OF MODE 3 G NETWORK

    Good luck

    Kind regards

  • Browser field loses focus

    Hello everyone,

    i'have a VerticalManager

    I got a browserField, then a ButtonField.

    When I run my application, the browser and the button are not displayed correctly but my button won't get the focus.

    I can only move the pointer browserField.

    in fact, I can move the pointer down through the VerticalManager of scrolling browserField, and then I can move the pointer even outside the browserField button. really strange...

    If anyone can help...

    I finally decided to lose the pointer to the browserField mode.

    carret mode, there is no problem at all.

  • Field of browser pointing to html content in my device

    Hi all

    I'm currently exploring the field of browser and its related APIs and met an interesting query.

    Scenario: I have a file HTML bundled with my cod file, and when the browser field is called, that the HTML content must be displayed in the field of the browser instead of seek it from the internet.

    Can this be achieved? If so, how can I go about it?

    Thank you...

    Thanks for all the suggestions, guys...  They really helped me sort this one out... Just to sum everything up, there are 3 ways to make the HTML content in the browser field.

    1. Using the "cod://ProjectName/FileName.html" as the url for establishing the HttpConnection where the name of the file is placed in my project .cod file.
    2. Provide the HTML in a string, convert it to a ByteArrayOutputStream, encode it with the Base64OutputStream and challenges in the form of url for the opening of HttpConnection.
    3. Simulate an implementation of the HttpConnection and use it instead of the original HttpConnection. (However, this only works for static HTML content, it is to say no links or references should be included in this happy)

    All of these solutions have worked with JDE 4.0.0 and I used the BrowserContentManagerDemo and the BrowserFieldSampleApplication (packed in the JDE) as reference implementations.

    I hope this helps everyone who crosses with the same requirement...

    See you soon,.

    Solène...

  • NET.rim.device.API.browser.field2 is based on webkit in OS6?

    I read this post on the differences between browser.field and browser.field2.

    http://supportforums.BlackBerry.com/T5/Web-development/net-rim-device-API-browser-Field2/m-p/416465;...

    On OS 5 browser.field2 is based on the rendering engine of mango. I was wondering if browser.field2 is still inspired by Mango in OS 6 or if it has been updated to use the new engine webkit based.

    Thank you

    Geoff

    The OS 6, browser.field2 has been updated and works on the WebKit engine.

  • Weird field browser click on blackBerry

    I'm using 4.7.0.75 OS, device of storm.

    I use Browser.Field to display html content.

    I tried applyling css around a href and the element behaves strangely

    (1) I need to click on the top of the element to ensure that the user has clicked.

    (2) JavaScript does not recognize the key event. (this has been discussed in another post).

    (2) if I click on any other place instead of the upper part of the element, its recognition of the key event

    but the event doesn't have much info, so I am unable to determine the ahref close the click...

    |---------------------------------------|

    | Click work |

    |  ahref                              |

    | ___click don't work__ |

    In the regions where click not work... that he is treated as a key event.

    Any thoughts on the events of click/touch of treatment to treat links to ahref near click/touch

    is greatly appreciated.

    Sorry guys... There was a problem of CSS... Its solved now.

  • Field browser rendering problem

    Hello

    I just discovered the package browser.field of Blackberry and explored the same. However, was not able to find a good tutorial about it. I read somewhere that the sample coupled with the jde can help.

    \\samples\com\rim\samples\device\blackberry\browser

    I solved some of compile errors and run the code, without exception, but with no output.

    I just get a blank on the emulator screen and nothing else. I tried debug code and found that the _mainScreen has a VerticalFieldManager that holds a HTMLBrowserField, but I wonder why it is not made.

    Someone has an idea, please answer...

    Also, if anyone has a better example to explore, it would be really nice...

    Thank you

    I used the example of the BrowserContent and BrowserContentManager classes.

    However, I realized that I had not signed the cod files prior to their execution on the emulator, and so no content has been read. Once I registered to them, he started to work perfectly well.

    I had missed on the signature part of the cod from the JDE himself suggested documentation files:

    "

    Category:
    Signed: This item is only available to signed clients. If you intend to use this item, please contact RIM to establish the necessary agreements that will allow you to have your signed COD files. Signature is required for use on the device, as part of the JDE can occur without signing cod. "
    I think it would be one great help to others if this documentation is revised as soon as possible so that other newbies like me usually get lost with her new..!
    .
    Thank you for the responses,
  • Field of browser not download image resource, rather attempts to download favicon.ico

    Hey,.

    I have an application using browser field to display a web page on my server. The web page contains a picture 1 x 1 pixel, as a follow-up to bacon. I found field browser never download this bacon. I put a breakpoint on getResource() and found a resource to go on my server and try to download favicon.ico. Basically I returns null instead, and never reached my 1 x 1 pixel.

    Can any expert help me on that? It is very essential for my application.

    Thanks in advance.

    It is the expected behavior.  As part of the optimization process, the BlackBerry browser will ignore (not load) extremely small images that would not be visible to the user.

  • Field of browser rendering PROBLEM

    Hello

    I use Blackberry Storm OS 4.7

    I use the browser field.  The application I'm developing has a few pages

    to be made.

    When I load the page, its appears differently.

    Sometimes, he respects the margins and padding of css and a few times it doesn't.

    Sometimes even the font size seems low regardless of the css style.

    I used the rendering Options for the size of the police, but his increase in the size of the default text font

    not the text that has the title. (which is the correct behavior).

    Is it possible I can get consistent browser behaviour.

    any help is greatly appreciated

    Zorro

    Its a different matter.

    Fixed it!

  • Browser hyperlink field problem

    Hello

    In my application I am display of the HTML in the browser field, I give you the layout for this field of browser, my problem is some hyperlinks in the HTML content is there too. My requirement is each time I click on one of the links so I need to open the new field of browser and I need in the field of fullscreen browser (IE firstly I am html content display in small area in my screen but I need to open the new field of device browser total widtf and device height.) can anyone suggest me how to open the new field of browser, I click on any hyperlink...

    Thanks in advance,

    Lachi.

    Hi laxman, see this link

    http://supportforums.BlackBerry.com/T5/Java-development/open-link-in-BrowserField/m-p/557983#M113954

  • Is it possible to know when a page redirects in the field of browser?

    Hi all

    Is it possible to know when page redirection occurs in the area of browser?

    Let me allow you to be a little more clear... I opened a gmail account in my browser field. After you enter the credentials, I clicked on the "connect" button and the page redirects to my account details. I just want to know when is this redirect?

    We can enter the url of the current page when a website redirects page 1 across the browserfield?

    BrowserFieldDemo in the JDE samples gives the answer for me.

  • Using the browser as a front end for an application

    I'm still relatively new to this Yes, you can forgive any missteps.

    I'm developing an application that needs to use the browser as its user interface. I want to capture all requests from the browser content and their service myself in the application.

    Is browser.field the only way to do it? I would have preferred using the API generic as much as possible.

    I built the BrowserFieldSampleApplication of JDE 4.2.1 with Netbeans, but I can't make it work. I copy the cod on the device, but it doesn't appear anywhere I have the same problem with the Simulator.

    Any help much appreciated.

    I gave up trying to get this to work because I was not really interested in using a HTTPConnection.

    Thanks for your help anyway.

Maybe you are looking for