Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Highlighted
Regular Contributor
Posts: 81
Registered: ‎01-16-2012
My Device: BOLD 9650 + developer
My Carrier: Vodafone

open a local file using the BlackBerry Browser

i need to invoke html file in SDcard   i use this code 

BrowserFieldConfig browserFieldConfig = new BrowserFieldConfig();
browserFieldConfig.setProperty(BrowserFieldConfig.NAVIGATION_MODE,
BrowserFieldConfig.NAVIGATION_MODE_POINTER);

BrowserField browserField = new BrowserField(browserFieldConfig);
browserField.requestContent("file:///SDCard/BlackBerry/1/test.html");
htmlBodyManager.add(browserField);
getMainManager().deleteAll();
getMainManager().add(htmlBodyManager);