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

New Contributor
Posts: 3
Registered: ‎01-15-2010
My Device: blackberry 8300
My Carrier: sw engg

Locate friends on a maps

Can anyboby send me a sample code to locate friends on maps???

Posts: 50
Registered: ‎09-01-2009
My Device: Not Specified

Re: Locate friends on a maps



I think you need to refer to mapFieldDemo in order to understand how map works.

as i have read that i got to know that DemoMapField & MapFieldDemoScreen boh java file you need to look at closely which will be very useful to you to integrate map funtionality in your application.

As you want to locate your friend on your map i think


you need to override paint method in the DemoMapField.java file

in paint method you get all your longitude an latiude the convert each into XY point in order to put it on screen. then use this XY point and with the help of graphics you can use drawBitmap or drawText what ever you want.