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
New Developer
LeonMax
Posts: 15
Registered: ‎11-26-2008
My Device: Not Specified

Browser filed. Problem with displaying jad/jar files on real devices.

Hello.

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.

New Developer
gReebok
Posts: 12
Registered: ‎11-27-2008
My Device: Not Specified

Re: Browser filed. Problem with displaying jad/jar files on real devices.

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.

New Developer
gReebok
Posts: 12
Registered: ‎11-27-2008
My Device: Not Specified

Re: Browser filed. Problem with displaying jad/jar files on real devices.

Possible some required RenderingOptions is missing (like RenderingOptions.ENABLE_EMBEDDED_RICH_CONTENT).

 

Does anybody use BrowserContent API to open jad or jar?

New Developer
LeonMax
Posts: 15
Registered: ‎11-26-2008
My Device: Not Specified

Re: Browser filed. Problem with displaying jad/jar files on real devices.

Also this is reproduced on simulators when "Enable device security" is turn on.

New Developer
gReebok
Posts: 12
Registered: ‎11-27-2008
My Device: Not Specified

Re: Browser filed. Problem with displaying jad/jar files on real devices.

Any solutions?

I also want to get any comment from BlackBerry team.

 

THX!!

New Developer
gReebok
Posts: 12
Registered: ‎11-27-2008
My Device: Not Specified

Re: Browser filed. Problem with displaying jad/jar files on real devices.

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.

BlackBerry Development Advisor
MSohm
Posts: 14,757
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: Browser filed. Problem with displaying jad/jar files on real devices.

The browserfield APIs do not support the installation of applications via a JAD file.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
LeonMax
Posts: 15
Registered: ‎11-26-2008
My Device: Not Specified

Re: Browser filed. Problem with displaying jad/jar files on real devices.

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. 

New Developer
tanuj1039
Posts: 7
Registered: ‎12-31-2009
My Device: Not Specified

Re: Browser filed. Problem with displaying jad/jar files on real devices.

I am facing exactly the same problem. Can anyone help me out?