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

BlackBerry® OS Smartphones

Reply
Highlighted
New Contributor
Posts: 5
Registered: ‎11-23-2011
My Device: simulator 9800
My Carrier: company

Google map on BlackBerry Simulator 9800

[ Edited ]

Hi,

 

i can download google map successfully. but when i displayed on blackberry simulator 9800 using this code.

 

public class NewsTitleScreen extends MainScreen{

public NewsTitleScreen(){
VerticalFieldManager main_mgr=new VerticalFieldManager(VERTICAL_SCROLL|VERTICAL_SCROLLBAR){
protected void sublayout(int maxWidth, int maxHeight) {
super.sublayout(Display.getWidth(),Display.getHeight());
setExtent(Display.getWidth(),Display.getHeight());
}
};
 
int mh = CodeModuleManager.getModuleHandle("GoogleMaps");
/*if (mh == 0) {
    try {
throw new ApplicationManagerException("GoogleMaps isn't installed");
} catch (ApplicationManagerException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}*/
BrowserSession visit = Browser.getDefaultSession();
visit.displayPage("http://www.geochemie.uni-bremen.de/kml/borabora.kml");
URLEncodedPostData uepd = new URLEncodedPostData(null, false);
uepd.append("action","LOCN");
uepd.append("a", "@latlon:35.0000,-105,0000");
uepd.append("title", "govind");
uepd.append("description", "hellooooo");
String[] args = { "http://gmm/x?"+uepd.toString() };
//ApplicationDescriptor ad = CodeModuleManager.getApplicationDescriptors(mh)[0];
//ApplicationDescriptor ad2 = new ApplicationDescriptor(ad, args);
//ApplicationManager.getApplicationManager().runApplication(ad2, true);
try
    {    
        ApplicationDescriptor ad =CodeModuleManager.getApplicationDescriptors(mh)[0];                                           
        ApplicationDescriptor ad2 = new ApplicationDescriptor(ad, args);
        ApplicationManager.getApplicationManager().runApplication(ad2,true);

    }catch(Exception e)  
    {
          }
}

 

 

It only display white screen......

 

Please help me for this

thanks in advvance..

Developer
Posts: 172
Registered: ‎01-02-2012
My Device: 8520 curve
My Carrier: compny

Re: Google map on BlackBerry Simulator 9800

hi 

please tell me how you downloaded google map on 9800 simulator

 

i am using m.google.com/maps link but it is showing message that it is not supported by this device.

thanks