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
Developer
tej
Posts: 33
Registered: ‎12-26-2013
My Device: 8760
My Carrier: airtel

Research and Development on Google Map And Compass.

Hi Guys.

 

1. Requirement. 

 

I want to integrate Google map in my blackberry native application. And my requirements are:

  1. Show current location
  2. Pin the location on map
  3. Tapping on any pin, a small pop-up will be displayed where User can view detailed description
  4. Show Direction on map.

2. Compass.

 

Second one is Compass. Integration.

 

IS This possible in Blackberry if yes Please Provide me some suggestion on this.

Thanks & Regard
Tej

 

 

Please use plain text.
Developer
simon_hain
Posts: 15,930
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: Research and Development on Google Map And Compass.

there is no on-device-api for google maps. you have to use their web api (or blackberry maps which have an api)

i think all of your points can be done.
i suggest to read the development guides on location based services.
----------------------------------------------------------
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.
@SimonHain on twitter
Please use plain text.
Developer
Developer
tej
Posts: 33
Registered: ‎12-26-2013
My Device: 8760
My Carrier: airtel

Re: Research and Development on Google Map And Compass.

@simon what about Compass. Integration do you have any idea about this.

Please use plain text.
Developer
simon_hain
Posts: 15,930
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: Research and Development on Google Map And Compass.

i suggest to enter compass into the search field or to read the relevant developer guides.
since 7.0 there is an own field:
http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/lbs/compass/CompassField.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.
@SimonHain on twitter
Please use plain text.
Developer
Developer
tej
Posts: 33
Registered: ‎12-26-2013
My Device: 8760
My Carrier: airtel

Re: Research and Development on Google Map And Compass.

[ Edited ]

@simon i am wrking on this code for comapss but when i running it is throwin error.

 

 

\Eclipseworkspace\compass\lib\blackberry-7.0.0.jar(com/google/zxing/BarcodeFormat.class): Error!: Duplicate definition for 'com.google.zxing.BarcodeFormat' found in: com.google.zxing.BarcodeFormat

 

Code

 

CompassField compField;

public MyScreen()
{
// Set the displayed title of the screen
setTitle("CompassFieldDemo");
compField = new CompassField();
VerticalFieldManager vfm = new VerticalFieldManager();
vfm.add(compField);
add(vfm);
}
public boolean onClose()
{
// Close the compass field to release its resources.
compField.close();
close();
return true;
}

 

Please use plain text.
Developer
simon_hain
Posts: 15,930
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: Research and Development on Google Map And Compass.

duplicate definition means you have two occurrences of the class in your project, for example because you added a jar file and the class is also in the default API.
like
http://www.blackberry.com/developers/docs/7.1.0api/com/google/zxing/BarcodeFormat.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.
@SimonHain on twitter
Please use plain text.