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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
GoldenJoe
Posts: 342
Registered: ‎09-28-2009
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.

Please use plain text.
Developer
peter_strange
Posts: 17,701
Registered: ‎07-14-2008

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.

Please use plain text.
Developer
GoldenJoe
Posts: 342
Registered: ‎09-28-2009

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.

Please use plain text.