I’m reading a HTML file from SDCard with browserfield (API 5.0)
BrowserFieldConfig config = new BrowserFieldConfig();
config.setProperty(BrowserFieldConfig.NAVIGATION_MODE, BrowserFieldConfig.NAVIGATION_MODE_NONE);
browser = new BrowserField(config);
browser.displayContent(content); // content (from file) = "<html><head>..."
I can’t just find a way to inform the browserfield that the images in this page are sitting next to the HTML file in the images directory
I found that I can pass a parameter to
browser.displayContent(content, path),pathparameter tells the browser where to look for relative paths in the HTML.