Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
amardeepjaiman
Posts: 286
Registered: 02-25-2009

google maps

Hi,

 

can i use google maps in blackberry application ? 

 

i am using blackberry maps in my application, but blackberry maps does not have detailed maps of India. so i just wanna use google maps in

my application.

 

How can i use them ?

 

 

Please use plain text.
Developer
simon_hain
Posts: 10,780
Registered: 07-29-2008
My Carrier: O2 Germany

Re: google maps

maybe this is helpful:
http://www.blackberryforums.com/developer-forum/143263-here-s-how-start-google-maps-landmark.html
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.

peter_strange wrote:
"This process should happen traumatically for you in both JDE and Eclipse."
Please use plain text.
Developer
amardeepjaiman
Posts: 286
Registered: 02-25-2009

Re: google maps

Hi simon,

 

I want to integrate google maps in my application using google maps api, i dont want to open google map application from my application. i think 

what u have suggested me , is the code to launch google map application from any blackberry application.

 

Please suggest.

Please use plain text.
Developer
simon_hain
Posts: 10,780
Registered: 07-29-2008
My Carrier: O2 Germany

Re: google maps

this is not possible. feel free to ask google for it, though.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.

peter_strange wrote:
"This process should happen traumatically for you in both JDE and Eclipse."
Please use plain text.
Developer
amardeepjaiman
Posts: 286
Registered: 02-25-2009

Re: google maps

Thats the convincing reply :smileyhappy:
Please use plain text.
Developer
pwerry
Posts: 177
Registered: 01-21-2009
My Carrier: Vodafone

Re: google maps

You can always implement a browser field and use the web maps API. Since public RIM APIs do not support reflection, you can't load componants of other modules even if you know the names, unless you link to them at compile time.
Please use plain text.
New Developer
bold_storm
Posts: 10
Registered: 02-22-2009

Re: google maps

I am also trying to use Google maps in my application.

My idea is to get a map image from google using HttpConnection.

 

The URL is:

URL = "http://maps.google.com/staticmap?size=360x480&maptype=mobile&zoom=14&center=53.515,8.208&key=MY_KEY";

 

My HttpConnection is:

httpConnection = (HttpConnection)Connector.open(URL + ";deviceside=true");

 

The result is an IOException "Peer refused the connection" in TcpClientConnection. The same URL works fine in the browser in the emulator. If I store the returned GIF on my own server, I can display it in my app. So there is a problem with the URL.

 

Any idea what is going wrong?

 

I am working with the Storm emulator in Eclipse with the  BlackBerry Component Pack 4.7.0.

 

Please use plain text.
Developer
adwiv
Posts: 163
Registered: 08-01-2008

Re: google maps


pwerry wrote:
You can always implement a browser field and use the web maps API. Since public RIM APIs do not support reflection, you can't load componants of other modules even if you know the names, unless you link to them at compile time.

Just wanted to suggest a little correction here:

 

RIM APIs allow Class.forname() method and newInstance() methods. So if you know the class name of some other component, and that class has a public default constructor and you can cast that object into something you can link at compile time (eg Field, Vector, or worst case Object) you can use some of the methods of the class.

 

Of course you can not do everything that reflection allows, but some things should be possible.

Please use plain text.
Developer
peter_strange
Posts: 14,614
Registered: 07-14-2008

Re: google maps

Note that you will actually have to know something about the class you are instantiating.  For example, you can't cast uour new Object to a Vector unless it actually extends Vector. 

 

Of course the debugger comes in really useful here, to do this investigation.

Please use plain text.
Developer
pwerry
Posts: 177
Registered: 01-21-2009
My Carrier: Vodafone

Re: google maps

A couple additions to adwiv's post.

 

Currently no reflection apis exist in the framework. You can't call Class.forName() and newInstance() with class names that exist outside of your module group and the RIM framework. It will throw an exception. In fact, even if your app is aware of other libraries compiled with your app, you can get exceptions by trying to load instances of library objects through Class.forName(). The casting symbol must also be known at compile time, so you can't cast to anything beyond what your app is aware of.

 

Let me know if that helps.

 

Please use plain text.