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
Contributor
Posts: 11
Registered: ‎03-04-2014
My Device: 9900
My Carrier: Vodafone
Accepted Solution

Access html saved on internal memory

Hello,

 

I need to access html file in browserfield that are saved in internal memory

 

This does not work;

 

request.setURL("file:///store/home/user/mpower/html/feedback.html");

...some code here...

final InputConnection ic = handleResourceRequest(request);

...some code here...

browserField.displayContent(ic, request.getURL());

 

this gives me a blank white screen. however the local:/// files work properly.

 

Request assistance with code.

 

 

Thanks,

Godwin

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

Re: Access html saved on internal memory

If you use the File Explorer to find the html file and then double click on it, does the browser start?

Contributor
Posts: 11
Registered: ‎03-04-2014
My Device: 9900
My Carrier: Vodafone

Re: Access html saved on internal memory

Yes it works through file explorer. Can you provide reference link of sample code. I would cross check
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Access html saved on internal memory

Once you have it open in Browser use the menu to copy the page addess, then paste it into a memo of something to find out what URL it has actually used.  Compare that with the one you are trying - perhaps that will show you what you need to specify. 

Contributor
Posts: 11
Registered: ‎03-04-2014
My Device: 9900
My Carrier: Vodafone

Re: Access html saved on internal memory

My bad. These htmls were extracted from zip and were of 0KB. thats why the content was blank.

 

Many thanks.