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
eraman
Posts: 34
Registered: ‎03-08-2012
My Device: Simulator
My Carrier: Developer

Re: Reg;Invoking maps in blackberry

Hi,

thanks for the help.Can u plz tell us how to create a pin over google maps which can be moved and placed on any area on map and it should return the name and time of that selected place?????........it will be a great help.

Please use plain text.
New Member
jhoussem
Posts: 1
Registered: ‎05-10-2012
My Device: BlackBerry 9500
My Carrier: Orange

Re: Reg;Invoking maps in blackberry

Hello,

i copied your Code sample but all i get is white screen :smileyhappy:

if you can, please, help it'll be very nice.

thank you.

Please use plain text.
Trusted Contributor
avi_yach
Posts: 184
Registered: ‎11-26-2010
My Device: Not Specified

Re: Reg;Invoking maps in blackberry

Jho, That example worked fine for me, I am not able to figure out why it is not working with you.

 

A Y

Please use plain text.
Contributor
sarahfarukh
Posts: 40
Registered: ‎06-25-2012
My Device: BlackBerry Curver 9300
My Carrier: Etisalat

Re: Reg;Invoking maps in blackberry

Hi, I am following this post to show google map through my BlackBerry application. I am unable to download and install Google maps in the simulator. I tried opening the link you have given but it has no option to download/install maps. I am lost. Please help!
Please use plain text.
Developer
kiran_b
Posts: 260
Registered: ‎10-27-2010
My Device: 8520

Re: Reg;Invoking maps in blackberry

Hi,

 

Instead of testing on simulator please use real device...

The code is working well....

Please use plain text.
Contributor
sarahfarukh
Posts: 40
Registered: ‎06-25-2012
My Device: BlackBerry Curver 9300
My Carrier: Etisalat

Re: Reg;Invoking maps in blackberry

Alright I will test in the device. But how do I install Google Maps? That is the first requirement to get this code to work right?How do I get those installed?The link does not help.
Please use plain text.
Developer
kiran_b
Posts: 260
Registered: ‎10-27-2010
My Device: 8520

Re: Reg;Invoking maps in blackberry

If Google maps are not installed in your device programatically we can install it in the code we are doing that part also here i am able to install google maps programatically.\

 

once check your code and test the application , i suggest you check your wifi/gprs connectivity also....

 

 

 

 

 

 

--------------------------------------------Press Kudos if this post helps you -----------------------------------------------------------------

Please use plain text.
Contributor
sarahfarukh
Posts: 40
Registered: ‎06-25-2012
My Device: BlackBerry Curver 9300
My Carrier: Etisalat

Re: Reg;Invoking maps in blackberry

Thank you kiran, I will try adding the code to install programatically and try again. I added external jar file for the google maps but there appears to be some error. What link do I have to call in HttpConnection to install google maps programatically? This is my first BlackBerry application and so I may not know the basics:$
Please use plain text.
Developer
kiran_b
Posts: 260
Registered: ‎10-27-2010
My Device: 8520

Re: Reg;Invoking maps in blackberry

No problem dear...

Here i am explaining clear in the beow code mh==0 then no google maps in your application so in that directly i am opening google maps using Blackberry broswer so there is no need of http connections.

Use the below code it will work for you...

 

int mh = CodeModuleManager.getModuleHandle("GoogleMaps");
    if (mh == 0)
    {
         try
         {
           String url="http://m.google.com/maps";
           net.rim.blackberry.api.browser.BrowserSession bSession = net.rim.blackberry.api.browser.Browser.getDefaultSession();
           bSession.displayPage(url);
           bSession.showBrowser();
           UiApplication.getUiApplication().pushScreen(new Locations());
          } catch (Exception e) {
                   e.printStackTrace();
           }
   }

 

 

----------------------------------------------Click Kudos if the Post helps you -----------------------------------------------------------------

Please use plain text.
Contributor
sarahfarukh
Posts: 40
Registered: ‎06-25-2012
My Device: BlackBerry Curver 9300
My Carrier: Etisalat

Re: Reg;Invoking maps in blackberry

Thanks :smileyhappy: I will try it out now!
Please use plain text.