11-26-2008 11:30 AM
I am using browser field to display pages. I started with BrowserFieldSampleApplication from JDE examples. I tried to open html, media files, open jad,jar files. On simulator all work fine. Then I tried to open these files on real device. All files instead of jar/jad are opened.
I always get RenderingException (with description that is set to null) when try to get browser content when open jar/jad files on real devices:
browserContent = _renderingSession.getBrowserContent(connection, this, e);
Anybody has any suggesting?
Thanks in advance.
11-27-2008 04:28 AM
I have the same issue: getBrowserContent function fails if I try to open jad or jar file on 8800, 8100 or 8310 device. On simulators it works great. Also media files are showed successfully on these devices.
How BlackBerry File explorer does so? I beleive it uses the same logic to show file content and it handles jar/jad very easily.
PS. I know the way to open file in browser, but I really need to open file in my application.
11-27-2008 07:48 AM
Possible some required RenderingOptions is missing (like RenderingOptions.ENABLE_EMBEDDED_RICH_CONTENT).
Does anybody use BrowserContent API to open jad or jar?
12-01-2008 02:14 AM
Ok, Will going with assumption that this is RIM bug:
1) RIM KB does not contain any information that this API couldn't be used for some sort of 'special' files (jad, jar, etc)
2) Exception does not contain any message (description is null)
3) Exception is raised on simulators only if "Security mode" is enabled.
The curios thing that I can install jad file programmatically as well but I can't install the same file using stadard BB installation dialog because of some vague security reasons. This is shame.
12-03-2008 04:28 PM
12-05-2008 02:28 AM
Why the browserfield APIs do not support the installation of applications via a JAD file? Look at standard blackberry file explore (you can open it via media->menu->explore) and try to open jad/jar files via file explore, look what happens when jad file is invoking via invocation api, which available from the JDE 4.3. FileExplore and Mediacontenthandler use browser field to display file content. And they easily install jar/jad files.
Also applications are installed via browser field on simulator when device security flag is turn off. So i think that browser field support jar/jad files. I really don't understand why it is doesn't work with the enable device security and on real device and there are no one RIM KB articles about this issue.