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
Developer
klerisson
Posts: 78
Registered: ‎12-03-2009
My Device: Not Specified

Open local file default browser

Greetings!

I'm still facing some problems to open a local file in a default BB browser.

I've already take a look at others posts and KB, but still...

 

I need to open a .kmz file that is stored in SDCard. So, I just call the browser as bellow:

 

 

String path = System.getProperty("fileconn.dir.memorycard");
path += "file.kmz";
BrowserSession browserSession = Browser.getDefaultSession();browserSession.displayPage(path);

 

 

And then, at simulator I got:

- "The returned page had no content type, and therefore cannot be processed."

 

- Manually open directly at Browser I got the same response.


- Putting the file in a webservice: works pretty well!!

 

At the device (Curve):

- "The returned page had no content type, and therefore cannot be processed."

 

- Manually: "A problem occurred while trying to render the page."

 

- Through webservice: works but is launching BBMap instead of GMap. Yes, I cannot use BBMap due the restrict coverage.

 

Any thing wrong or weird(or both)? Thanks in advance!

--
Feel free to press the kudos button on the left side to thank the user that helped you.
Please mark posts as solved if you found a solution.
Please use plain text.