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
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) {

System.out.println(e.getMessage());

}

}

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

ApplicationDescriptor descriptor = CodeModuleManager

.getApplicationDescriptors(module)[0];

ApplicationDescriptor ad2 = new ApplicationDescriptor(descriptor, args);

try {

ApplicationManager.getApplicationManager()

.runApplication(ad2, true);

} catch (ApplicationManagerException e) {

System.out.println(e.getMessage());

}

}

 

 

 

 

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">

  <Placemark>

    <name>Stonehenge, England</name>

    <description>Stonehenge was built about 2500BC

    </description>

    <Point>

      <coordinates>-1.826752,51.179045

      </coordinates>

    </Point>

  </Placemark> 

</kml>

 

can any one trigger out the issue 

 

Thanks a lot in advance 

SujithRavindran