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 Contributor
Posts: 4
Registered: ‎02-19-2010
My Device: Black Berry storm
My Carrier: ISTS

how to render HTML in black berry application from resource bundle

I want to embed html pages into my ui application. Which are using java script as well as css.

I want to open the resource bundle in to my black berry simulator 9530. I am not able to open any of html page in my application. I want to open html resource bundle from within .cod file being installed on simulator. At which path will it be retrieved from .cod file. My code sample is

 


        try {
            
            InputConnection inputConnection = (InputConnection) Connector
                    .open("file:///resources/default.htm");
            
            BrowserContent browserContent = null;
            browserContent = _renderingSession.getBrowserContent(
                    inputConnection, url, this, e);

 

It gives FileIOException. url is "file:///resources/default.htm".

New Contributor
Posts: 4
Registered: ‎02-19-2010
My Device: Black Berry storm
My Carrier: ISTS

Re: how to render HTML in black berry application from resource bundle

the JDK version i am using is 4.7.0