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
Developer
Posts: 342
Registered: ‎09-28-2009
My Device: Not Specified
Accepted Solution

HTML Resource

Is there any way to have a .html page as a resource in your project, and open it with a browsersession or browserfield?  Thanks.

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: HTML Resource

Yes.

 

The easiest option is the Browser;

 

See this Thread:

http://supportforums.blackberry.com/t5/Java-Development/Loading-a-local-html-file-in-the-browser/m-p...

 

Browser Option is more difficult, for BrowserField 1 (i.e. pre OS 5.0).  You need to wrap the file in an http connection.  There is code on the forum to help with this. Have a search around.

Developer
Posts: 342
Registered: ‎09-28-2009
My Device: Not Specified

Re: HTML Resource

Thanks.  I found that topic while searching, but I completely missed the part where they reference the files directly.  That's exactly what I was looking for.