Field of browser

If I integrate a browser into an application and point the browser to a site that plays an audio stream will be the browser simply open media player or play the stream through the browser?

He will play the stream...

Thank you!

Tags: BlackBerry Developers

Similar Questions

  • 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...

  • Embedded video does not play in the field of browser on os 5.

    Hi all

    I tried to play a video embedded in the field of the Navig. It has worked well in the Simulator. But does not work in the real aircraft. I use 8900. When I open the url in the default browser in 8900 its works perfectly. Y at - it all nedded field of browser settings play audio or the embedded video?

    Am the url is http://devweb.wizzpers.com/chat/seewizzper/wizzperid/30305

    Another problem is the time for video playback in the default browser for the blackberry 8900. When I tried the same thing in android and iphone taking 7-8 seconds to play. But 8900 takes 45 to 60 seconds.

    My code snippet is as shown below

    VerticalFieldManager browserManager = new VerticalFieldManager();

    BrowserField browser = new BrowserField();

    browserManager.add (browser);
    browser.requestContent (url);

    Add (browserManager);

    Any idea about this problem?

    Thanks in advance.

    Sujith.

    I am able to reproduce this problem.  It is caused by a problem with the BrowserField himself.  I don't have a work around for this when using the BrowserField.  You could launch the browser to display the page or play the video directly in your application using the player class.

    Our development team is aware of this problem, which should be resolved in a future version of BlackBerry Device Software.

  • Field of browser BlackBerry 2: Crash when loading web page with the County to expand

    I use the browser Blackberry 2 custom field in my application to display local html pages that I load device SD Card. For the few notes I met the application crash.

    I quickly tested behavior Blackberry browser for these pages and found that it crashes too. Steps to reproduce:

    1 torch 9800, operating system. 6.0

    2 copy attached to SD card files

    3. access to these files by using application "files."

    4. try to open the test.html file by clicking on it.

    5 blackberry browser will crash.

    Issues related to the:

    1. scope of browser Blackberry 2 uses the same API as Blackberry browser on platforms 6.0.x?

    2. is there no work around for this problem?

    Mark,

    Thank you for your comments. But I finally found the solution me

    The solution is the following:

    (1) change us html so that it will contain no image resources.

    (2) for each image resources, we create something like

    or any other appropriate HTML element. Here, we will retain certain information that will help us identify how and where we need to charge, a kind of identity.

    (3) first load us the HTML page in the application. It should load without any problems.

    (4) then call us the JavaScript function that will replace our

    items with images using the timer. It is possible with BrowserField2.invokeScript (). When the script will replace an HTML element with element, which could cause some resources load (I mean handleResourceRequest), so you should run with it.

    I tested this solution in my application and crash problems have been solved even when we have a lot of images on the web page stored locally in the device memory or on the SD card.

  • 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.

  • 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.

  • 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!

  • 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.

  • Field to browse file not showing with Google Chrome

    Hello

    I use APEX 4.0.2 with 13 - Blue Classic theme.
    I noticed that the text of an element field browse file does not appear with Google Chrome (version 12.0.7). Only the 'Choose file' button.

    Is this a known bug? No work around?

    Thank you
    Matthias

    It is the presentation expected file browser controls in Webkit as Safari and Chrome browsers.

    The name of the selected file appears verbatim when selected.

  • ADF BC, jdev 10g: data database made its appearance on the fields of browser

    Hi all

    When I run the page of jdeveloper, it provides data of database for a particular entry in the event of insertion. Now, if I delete the value from the code, it is not display data. But the problem is when I go to "multiple entries", I'm trying to do, the browser displays 3 text boxes already(because I am having 3 rows already in my Database). I want to delete these fields already generated text.
    Can someone give me an idea about it.
    Thank you.
    Shannon

    If I understand you correctly, that you are trying to achieve is to have a situation where you enter a page and is already an empty record ready for the user to insert data in, and so you won't have to press the button to the right of exploitation to create?
    If that's what you try to resolve this check out:
    http://blogs.Oracle.com/Shay/2007/07/executing_an_action_on_jsf_pag.html

  • Why, when I type in a field of browser no missing first letter (for example: "windows")

    Recently, after a computer upgrade and reinstall I have this problem.

    I am running xp pro sp3. IE8.

    Hello
    You can check this link:
     
    How to reset Internet Explorer settings

    Warning: Reset the Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings

  • Display HTML content in the field of browser Blackberry eception illegalstateexception?

    My code what I do wrong here please help me?

    String content = ("< police =" verdana"size ="1"> SUREBUILD is a general purpose cement.) Typical applications are of concrete, mortar, plaster, masonry, paving, precast, grout, shotcrete products, the stabilization of soils and other general home and DIY applications. & nbsp; < br / > < br / > SUREBUILD is & nbsp; a proven product that has been designed to achieve a constant and appropriate performance. SUREBUILD is & nbsp; compatible with commercial chemical admixtures. ("< / police > < br / > ');

    BrowserFieldConfig config = new BrowserFieldConfig();
    HttpHeaders headers = new HttpHeaders();
    headers.addProperty (HttpHeaders.HEADER_CONTENT_TYPE, HttpHeaders.CONTENT_TYPE_TEXT_HTML);
    headers.addProperty (HttpHeaders.HEADER_ACCEPT_CHARSET, "UTF - 8");
    config.setProperty (BrowserFieldConfig.HTTP_HEADERS, headers);
    BrowserField contentField = new BrowserField (config);
    This.Add (contentField); Add to the form
    contentField.displayContent (content, "http://localhost"); content-> your HTML content
    listVfm.add (contentField);

    I posted an answer to this on StackOverflow, and now the question seems to have been deleted...  In summary, the comments that have been included:

    (a) the code provided does not fail, can we have an extract that makes?

    (b) it would be useful to have additional information, such as the environment of the failuire, the detailed message for the Exception and the line to wich that failure occurred.

    (c) when you try to view an html page, it should be a full html page.

  • Is it possible to make the field of browser to fit the actual size of the screen of the device?

    In the HTML code of the web page, add the meta tag with the minimum scale set to 0

    content = "maximum scale = 10.0, minimum scale = 0, scalable user = yes" > "

    On the client side, we can reduce the web page using the method of the initial key.

    config.setProperty (BrowserFieldConfig.INITIAL_SCALE, new Float (value));

    In my case, the following meta tag wasn't there and if the initial scale option did not work after a certain limit. This is defined in the html code, we can scale to any value between the minimum/maximum defined scales.

    With that, my problem has been resolved.

    But, if you want to adapt it to the screen of the device, you will need to calculate the value of the scale to make it suited to the size of the screen in all devices regardless of the resolutions.

  • Browser question field

    I want to use the browser to connect fb field.  I did own .net site for fb connect. It works very well in all devices.  I stayed in the 5.0 os. It does not work in the 9800 device. If I click on the button facebook this site, field of browser not able to redirect to another page.

    Please help its urgent.

    My code is

    BrowserFieldConfig myBrowserFieldConfig = new BrowserFieldConfig();
    myBrowserFieldConfig.setProperty (BrowserFieldConfig.NAVIGATION_MODE, BrowserFieldConfig.NAVIGATION_MODE_POINTER);
    final BrowserField browserField = new BrowserField (myBrowserFieldConfig);

    final ProtocolController pc = browserField.getController ((ProtocolController));
    //
        
    pc.setResourceRequestHandler ("http", new BrowserFieldResourceRequestHandler() {}
            
    public InputConnection handleResource (request for BrowserFieldRequest)
    throws Exception {}
    InputConnection inputConnection =
    browserField.getConnectionManager () .makeRequest (request);
    String urll = request.getURL ();

    If ((urll.indexOf ('Flag = 1')! = - 1)) {}
                    
    }
                
    Return inputConnection;
    }
    });
        
    pc.setNavigationRequestHandler ("http", new BrowserFieldNavigationRequestHandler() {}
    Public Sub handleNavigation (BrowserFieldRequest request) throws Exception {}
    Intercept();  Intercept the request and my manager
    InputConnection ic = pc.handleResourceRequest (request);
    browserField.displayContent (ic, request.getURL ());
    String u = request.getURL ();

    int i = u.lastIndexOf ('&');)
    String subString = u.substring (i + 1);

    {if (SUBSTRING.equalsIgnoreCase ('flag = 1'))}
                    
    }
    }
    });
    browserField.requestContent ("http://197.255.212.150/fbauth/Account/Login?IMINumber=" "+ DeviceInfo.getDeviceId () +"; ") deviceside = false;...

    I had problems in a number of Simulators with the implementation of the BrowserField.  I know I have problems with one is the 9800.  My immediately suspected, it's that there is a problem with this Simulator.  Download a simulator of 9800 with a later level of the operating system and try that or try on a real device 9800.

  • 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

Maybe you are looking for