BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 08-17-2009, 01:05 AM   #1 (permalink)
New Member
 
Join Date: Jul 2009
Model: 8120
PIN: N/A
Carrier: Airtel
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How to read html files from resource?

Please Login to Remove!

Hi,
I am developing an application wich renders html pages using browser content. My html files are in resource. I am reading those files and storing in device memory. And passing the filecommection in renderingSession.getBrowserContent(). Is it possible to directly use the files from resource?

Thanks.
Offline  
Old 08-21-2009, 07:22 PM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2008
Model: none
PIN: N/A
Carrier: none
Posts: 26
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Code:
InputStream is = getClass().getResourceAsStream("/package/name/page.html");
Quote:
Originally Posted by anu_u View Post
Hi,
I am developing an application wich renders html pages using browser content. My html files are in resource. I am reading those files and storing in device memory. And passing the filecommection in renderingSession.getBrowserContent(). Is it possible to directly use the files from resource?

Thanks.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

5PCS PIC16F628A-I/SO MCU FLASH 2KX14 EEPROM 18SOIC Microchip W
$3.64
5PCS PIC16F628A-I/SO MCU FLASH 2KX14 EEPROM 18SOIC Microchip  W pictureAT24C256 Serial I2C Interface EEPROM Data Storage Module for Arduino PIC Nice
$1.09
AT24C256 Serial I2C Interface EEPROM Data Storage Module for Arduino PIC Nice picture50PCS AT24C256C-SSHL-T EEPROM Sserial 256KB AT SOP-8 Original AT24C256 new
$14.97
50PCS AT24C256C-SSHL-T EEPROM Sserial 256KB AT SOP-8 Original AT24C256 new pictureNew USB Programmer CH341A Series Burner Chip 24 EEPROM BIOS Writer 25 SPI Flash
$6.18
New USB Programmer CH341A Series Burner Chip 24 EEPROM BIOS Writer 25 SPI Flash pictureMitsubishi FX-EEPROM-8, Used, FXEEPROM8, Fast Shipping
$198.67
Mitsubishi FX-EEPROM-8, Used, FXEEPROM8, Fast Shipping picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.