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

Other BlackBerry® Smartphones

Reply
New Contributor
sasisson
Posts: 2
Registered: ‎04-28-2009
My Device: Not Specified

Getting an HTML file to device

I am very new to Blackberry development and would appreciate some direction, either in answers or documentation to read.  Here is my dilemma. 

 

In Visual Studio 2008, I have created an HTML page using JavaScript that does stuff like dynamic table builds.  I have installed the blackberry development addin.

 

I want to get this HTML file onto my blackberry device(8730), preferably in the applications folder.  This is a for personal use so I do not want to load it onto my corporate BES server. 

 

I have the application loader software, but it looks to install applications not single web pages.  I have attached my blackberry device via a USB port but do not see the device in the windows explorer list of drives.  I have emailed it to myself and could not find a way to save it locally.

 

I have been unsuccessful in the searching I have done to date.    Any help or direction would be greatly appreciated.

 

Please use plain text.
Guru I
Xandrex
Posts: 18,403
Registered: ‎07-29-2008
My Device: Z30, Playbook, 9320BES
My Carrier: B&You _ SFR

Re: Getting an HTML file to device

what you want to do is not install an HTML page.
you want to put the HTML page either on the web, or somewhere on your device.

can you use a memory card ? ---> http://supportforums.blackberry.com/rim/board/message?board.id=BlackBerryDesktopSoftware&thread.id=3...
HOWTO : use your blackberry as a USB device



The search box on top-right of this page is your true friend, and the public Knowledge Base too:
Please use plain text.
New Contributor
sasisson
Posts: 2
Registered: ‎04-28-2009
My Device: Not Specified

Re: Getting an HTML file to device

I read the thread posted and tried the downloads.  I got stuck there as in the Options section discussion as  I do not have a media or memory card choice available.  

 

I have a BB 8700

Wireless Handheld (EDGE) v4.1.0.194 (Platform 2.0.0.90)

 

I can download OTA things as I have a couple things on the device from that.

 

Any suggestions.

Please use plain text.
Developer
rafo
Posts: 507
Registered: ‎07-15-2008
My Device: Not Specified

Re: Getting an HTML file to device

You can encapsulate your html file into cod file.

 

Let's suppose your cod file is: mymodule.cod

 

And your html file is: myfile.html

 

And display this file (page) via the following code.

 

BrowserSession browserSession = Browser.getDefaultSession();
browserSession.displayPage("cod://mymodule/myfile.html");

 

 Please note if you are runnng this code on simulator you have to have MDS simulator running too.

----------------
if your issue solved set "Solution" mark at the relevant post
Please use plain text.
Developer
rafo
Posts: 507
Registered: ‎07-15-2008
My Device: Not Specified

Re: Getting an HTML file to device

And please note that way I suggested is not a documented approach.

 

But it works.

----------------
if your issue solved set "Solution" mark at the relevant post
Please use plain text.