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
Posts: 191
Registered: ‎04-02-2013
My Device: BlackBerry Bold 9900
My Carrier: developer

Re: How to draw POI on camera screen

Yes i want to do it.

Please suggest me any link or material?

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

Re: How to draw POI on camera screen

[ Edited ]

Have a really good look round the samples you wil find here:

http://developer.blackberry.com/bbos/java/samples/

 

The one that looks most immediately useful is the AugmentedRealityDemo which probably comes with your IDE, but you can also find it on githab here:

https://github.com/blackberry/JDE-Samples/tree/master/com/rim/samples/device/augmentedrealitydemo

 

 

Developer
Posts: 191
Registered: ‎04-02-2013
My Device: BlackBerry Bold 9900
My Carrier: developer

Re: How to draw POI on camera screen

Hi

I have tried this sample.But i don't understand whats going on.

https://github.com/blackberry/JDE-Samples/tree/master/com/rim/samples/device/augmentedrealitydemo

 

 

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

Re: How to draw POI on camera screen

It seems to use Open GL to display an image that will change as you move the device around.  You possibly won't use Open GL, but the interaction with the Accelerometer is interesting isn't it.

 

For you application, you will probably first want to find out exactly where the phone is - so look at the SimpleLocationApi sample in the first link I sent you.

 

From there I presume you will send a location to the Server which will then provide you with the details of the local POIs.  So look round for networking samples and find out how you are going to get the data to display.

 

This should keep you busy for a bit.

Developer
Posts: 191
Registered: ‎04-02-2013
My Device: BlackBerry Bold 9900
My Carrier: developer

Re: How to draw POI on camera screen

i

I have tried the Location API but i am not getting the latitude and logitude in my device.

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

Re: How to draw POI on camera screen

That is a separate question to this, and so should be on its own Thread. 

 

But before you start your own Thread, make sure you review the many other posts you will find that discuss people not able to get the location on their device,. If you search you will find a number of these and also pointers to some diagnostic location code that you should try.  So search, use some of the hints, tips information and diagnostic code you will find, and if that doesn't help, start your own Thread. 

Developer
Posts: 191
Registered: ‎04-02-2013
My Device: BlackBerry Bold 9900
My Carrier: developer

Re: How to draw POI on camera screen

Hey

I have used the Location API sample demo. But i am not getting the location.

I have used other code and i am getting the latitude and longitude. Now , on which server i have to send the latitude and longitude so that i get the POI??

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

Re: How to draw POI on camera screen

Hate to ask an obvious question, but who do you think maintains a list of POIs you might want to use? 

Developer
Posts: 191
Registered: ‎04-02-2013
My Device: BlackBerry Bold 9900
My Carrier: developer

Re: How to draw POI on camera screen

Sorry Sir

I didn't get you.

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

Re: How to draw POI on camera screen

When you started developing this application, did you know of a particular service from which you expected to get your Points of Interest?