Questions tagged [browserfield]

BrowserField is a class of BlackBerry which is used to display web content within BlackBerry Java Application

This field will take up the dimensions of web content rendered within it. However, it does not provide the ability to scroll implicitly. Instead it is the BrowserField's container's responsibility to implement scrolling.

A simple example of using the BrowserField to render a web page is as follows:

// create new instance of the BrowserField
BrowserField browserField = new BrowserField();

// add the browser field to a ui manager or screen
screen.add( browserField );

// request the content you wish to display
// this method call is typically called once
browserField.requestContent( "https://stackoverflow.com" );

This class is added in BlackBerry Java Development since OS 5.0.0

API Reference

83 questions
1
vote
2 answers

Blackberry: Launch native browser from embeded browser

I am writing an JRE 5.0.0 app. The app has some HTML tips content that I display with a field2.BrowserField. I'd like to launch the native browser when a user clicks certain links. I've read the docs for BrowserFieldListener, but that doesn't…
Dean Brundage
  • 2,038
  • 18
  • 31
1
vote
1 answer

browserfield finished loading in blackberry

Please can anyone help me with my issue - what is the way to know that browserfield2 has finished loading in Blackberry. I need to set some options after loading. Does browserfield2 have some methods to show that?
Yuriy
  • 51
  • 4
1
vote
3 answers

Blackberry - How to print HTML String in a field

I have an HTML String like

something

etc... some other html string etc...

something

I would like to print in a field this string formatted. in android I use a webview... in iphone a UIWebView... but in BlackBerry? Thanks ;) Sergio
Sergio Andreotti
  • 913
  • 2
  • 8
  • 26
1
vote
2 answers

change font size in browser field blackberry

here is the code: public class MyHttp extends MainScreen{ public static final String HTTP_FILE = "local:///sources"; public MyHttp(String fileName){ BrowserField browserField = new BrowserField(); add(browserField); try{…
Yuriy
  • 51
  • 4
1
vote
1 answer

BlackBerry - BrowserField takes too long to load a local html file when triying to import a css, and the stylesheet is not even applied

I'm triyng to load a html file into a BrowserField. The html file is located inside the res folder. This is how I build the browserField object: InputStream content = getClass().getResourceAsStream("/www/html/welcome2.html"); try { byte[]…
Lucas
  • 1,239
  • 4
  • 15
  • 26
1
vote
1 answer

how to authenticate using webview in blackberry

I have a link which needs to be shown using webview I have a link which when opened in normal browser say chrome first prompts a dialog box to enter username and password and then goes for the link which has video embedded in it I have used the…
user3313210
  • 59
  • 1
  • 9
1
vote
2 answers

Display simple HTML in a native BlackBerry application

I want to be able to display some simple chunks of HTML in my native BlackBerry app, NOT returned from a URL. This is similar to existing Stackoverflow questions (e.g. here and here), but I need help getting the actual BlackBerry sample code to run…
Dan J
  • 25,433
  • 17
  • 100
  • 173
1
vote
2 answers

BlackBerry - Browserfield XMLHttpRequest not valid

I'm trying to launch an ajax request from javascript inside of a BrowserField. Here is a demo application, it's just an html element which tries to make an ajax request on click. public MyScreen() { // Set the displayed title of the screen …
1
vote
1 answer

Using Browserfield.displayContent with that has an external url

I am trying to create a screen for a blackberry 5.0+ app that has a banner at the top and then a Browserfield underneath that views an external site. The banner is hosted on one site and the content for the BrowserField is hosted on…
Jason Ridge
  • 1,868
  • 15
  • 27
1
vote
0 answers

Browser filed link click event

Hi I am developing an application in Blackberry java using Eclipse IDE. I have added a Browser Filed on the screen. And the Browser Filed contains many link (). I want to know which link the user clicked and perform actions for each link. My…
user2289194
1
vote
1 answer

Blackberry BrowserField / BrowserContent

I'm working with the BrowserFieldDemo (JDE 7.1.0) and on the event Event.EVENT_BROWSER_CONTENT_CHANGED, a BrowserContent object is retrieved with (BrowserContent) browserContentChangedEvent.getSource(); My question is: can I get a BrowserField…
user386093
  • 67
  • 8
1
vote
1 answer

White screen is displaying while loading local HTML files in Browser Field?

I am using BrowserField to display some local HTML files in my application. It is displaying the HTML files properly. But while starting of the screen it is displaying some white screen (background). How can i get rid of this issue? I am using the…
Arindam Mukherjee
  • 2,255
  • 11
  • 48
  • 83
1
vote
1 answer

BlackBerry - Open URL in Browser

On clicking the LabelField, I want to open the browser with the website link mentioned in the LabelField. I have tried to add navigation click to the LabelField but it does not work. It appears that the field is not clickable. Can anyone guide me?…
Sarah
  • 1,895
  • 2
  • 21
  • 39
1
vote
0 answers

BlackBerry browserfield find and highlight text

I'm writing an application that includes a BrowserField that I am using to show a HTML file. What I would like to do is show the user a dialog that they can type some text into and then find the text, highlight it and scroll it into view (like the…
logic_chopper
  • 131
  • 1
  • 2
  • 6
1
vote
1 answer

get absolute url on handle ressource request on blackberry

I use this method the get the urls of ressources contain on web page public InputConnection handleResourceRequest(BrowserFieldRequest request) throws Exception { final String url = request.getURL(); return…
mobileDeveloper
  • 894
  • 2
  • 14
  • 35