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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Regular Contributor
Posts: 75
Registered: ‎05-27-2010
My Device: 9800
My Carrier: Airtel

Show a pointer on map and navigate After clicking on it

Hi,

  I want to show a map with number of location using maker pins. After clicking on any pin, control should go to some page say info. From this we Can again navigate wherever we want. Can anyone please help. I'm using blackberry sdk 6.0 and device is torch 9800.

Highlighted
Regular Contributor
Posts: 75
Registered: ‎05-27-2010
My Device: 9800
My Carrier: Airtel

Re: Show a pointer on map and navigate After clicking on it

Hi,

 

Can anyone please help me? It's urgent and I am blocked.

 

Thanks in advance,

 

Regards,

Bhavesh Patel

Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: Show a pointer on map and navigate After clicking on it

I would start by opening the samples programs that ship with the BB SDK.

 

IIRC, there is a sample called MapfieldDemo that basically does what you are asking.

 

Regular Contributor
Posts: 75
Registered: ‎05-27-2010
My Device: 9800
My Carrier: Airtel

Re: Show a pointer on map and navigate After clicking on it

Hi,

 

I already saw the samples programs for MapField, but it's of no use to me.

This samples shows, how to open/invoke the blackberry map from my application.

Since it is invoking, there is no control of my application on Blackberry Map.

I want to show Map from my BB application. And On click of any position on BB Map, my application screen should come with some data.

I hope you understand my problem.

 

Please help me.

Thanks a lot in advance.

 

Regards,

Bhavesh

Contributor
Posts: 14
Registered: ‎03-05-2011
My Device: Monza 9860
My Carrier: XL

Re: Show a pointer on map and navigate After clicking on it

i think you should make a custom MapField.

override paint(Graphics) method to add/draw pin/marker

override navigationMovement() to define how you move the focus from a pin to another

override touchEvent() for TouchScreen device to handle clicking and moving the map

 

Danis

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Show a pointer on map and navigate After clicking on it

This code might help.  I would review if carefully.

 

http://stackoverflow.com/questions/1524428/how-to-show-our-own-icon-in-blackberry-map