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: 445
Registered: ‎10-14-2008
My Device: Blackberry Bold 9000
My Carrier: SingTel

Locate Caller`s Location on Call Receive

Hello,

 

I want show the callers location on call recive through GPS.

I know we have to create a PhoneListner.

 

My Thoughts....

 

1. We have to create a background service which is resposible for phone call listener.

2. When ever we recieve a call then we should pop up a screen with MapView.

 

but i m confused that how we can locate a user`s location.

 

what information we recived from server with a call so we can locate user by that. 

 

How it is possible.

 

Note : IF YOU HAVE ANY EXAMPLE CODE FOR THIS THEN PLEASE SEND ME ON zahidalinaqvi@gmail.com or ping me on yahoo : ai_znaqvi (10 - 7 PM)  IST

 

Thoughts................  :smileyhappy:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thanks & Regards
Zahid Naqvi | Senior Software Engineer
BlackBerry Development Advisor
Posts: 15,784
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Locate Caller`s Location on Call Receive

I recommend you have a look at the GPS and BlackBerry Maps Development Guide found at the link below.  You can also refer to the gpsdemo included with the BlackBerry JDE for an example on using the GPS APIs (JSR 179).

 

GPS and BlackBerry Maps Development Guide

http://na.blackberry.com/eng/support/docs/subcategories/?userType=21&category=BlackBerry+Java+Applic...

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 1,415
Registered: ‎07-30-2008
My Device: Not Specified

Re: Locate Caller`s Location on Call Receive

It sounds like his question has more to do with "What info is available about a phone call?" that

using the location info or does that document address this too?

 

Offhand, it sounds like another reason to get a voip service Smiley Happy

 

 

Developer
Posts: 445
Registered: ‎10-14-2008
My Device: Blackberry Bold 9000
My Carrier: SingTel

Re: Locate Caller`s Location on Call Receive

Not get the point.

i tried to run GPSDemo example but its not running.

i wanna show http://wikimapia.org/5484667/Mujahid-Naqvi-Home location on  blackberry screen. and just like this i wanna show caller ( who make call to me ) location.

 

anothter thing is that.

when ever we recive a call then what info`s we can get of caller.

 

Bottom line is want to create a project by that we can show the location of caller ( Who make call to us ).

 

How it is possible..........

 

Thoughts...........   :smileyhappy:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thanks & Regards
Zahid Naqvi | Senior Software Engineer
Developer
Posts: 1,415
Registered: ‎07-30-2008
My Device: Not Specified

Re: Locate Caller`s Location on Call Receive

Anything havng to do with a carrier handled voice service would probably be rather carrier specific,

but feel free to correct me if anyone knows differently as I have not looked much as voice.

Obviously, for a mobile originated call the originating carrier knows the handling tower's location

and for a fixed call you'd like to think a service address was available from/to the originating telco.

However, even if there was an API, there are a bunch of issues with caller ID information. Presumably

if you had the same VOIP client on both ends you could end up with a better product. If this isn't

an option, and you have to work with the carriers, it could be a bit of an issue. Curious to know what

you find out about API and the reality of any information provided.

 

AFAIK, all the BB support is in the phone package ( class Phone and PhoneCall for example).

 

 

New Developer
Posts: 96
Registered: ‎07-26-2008
My Device: Not Specified

Re: Locate Caller`s Location on Call Receive

The reference to GPS is misplaced. GPS will tell you *your* own location - not your callers location.

 

If you already have the caller location  in the address book - use that to display it on the map.

Otherwise, use callerid and look up a database and/or web service to find the proximate zip/pincode or lat/long associated with that phone number and display that on the map.

 

 

New Developer
Posts: 3
Registered: Sunday
My Device: z10
My Carrier: blackberry

Re: Locate Caller`s Location on Call Receive

Your service is so amazing, I love it
New Developer
Posts: 3
Registered: Sunday
My Device: z10
My Carrier: blackberry

Re: Locate Caller`s Location on Call Receive

I think I will enjoy thank u
New Developer
Posts: 3
Registered: Sunday
My Device: z10
My Carrier: blackberry

Re: Locate Caller`s Location on Call Receive

Thank u very much