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

Posts: 261
Registered: ‎08-11-2009
My Device: Not Specified

Reading local kml file in google map

Hi Developers ,


I have a question  can blackberry read local kml file for the use of google map .


i have implemented  google map



int module = CodeModuleManager.getModuleHandle("GoogleMaps");

if (module == 0) {

try {

throw new ApplicationManagerException(

"GoogleMaps isn't installed");

} catch (ApplicationManagerException e) {




String[] args = {"sample.kml"}; 

ApplicationDescriptor descriptor = CodeModuleManager


ApplicationDescriptor ad2 = new ApplicationDescriptor(descriptor, args);

try {


.runApplication(ad2, true);

} catch (ApplicationManagerException e) {








10) implementing google map in BB by vikas 




but i cant get the map location specified in the kml  , is that becaue im loading it locally or due to some other reason


following is the sample.kml file im  using 



<?xml version="1.0" encoding="UTF-8"?>

<kml xmlns="http://earth.google.com/kml/2.2">


    <name>Stonehenge, England</name>

    <description>Stonehenge was built about 2500BC









can any one trigger out the issue 


Thanks a lot in advance