HOW-TO: Obtaining incoming/outgoing number during phonecalls

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

HOW-TO: Obtaining incoming/outgoing number during phonecalls

Postby dtmilano » Tue Jan 29, 2008 5:29 pm

As stated in Phonecalls:
Now the only thing remained to see how the database is updated with regards to phone calls. It turned out that the number is not visible when the call goes out or comes in (RINGING or OFFHOOK state) but is accessible through the content provider when the IDLE transition event comes in. I was not able, therefore, to capture the number of the currently ongoing call but I was able to capture the number of the call that has just finished.


For a quick and dirty workaround to obtain the number during an incoming or outgoing phone call or sms, using the GSM radio log see Android Radio Logger.
dtmilano
Freshman
Freshman
 
Posts: 6
Joined: Thu Jan 24, 2008 9:40 am

Top

Postby paller » Tue Jan 29, 2008 6:29 pm

Note that the number of the incoming SMS can also be retrieved in a well-behaving way:

[Edit by plusminus]
Also here on anddev.org - the SMS-Receiver:
Image

[/Edit]

http://davanum.wordpress.com/2007/12/15/android-listen-for-incoming-sms-messages/
Nice hack, however. :-)
paller
Developer
Developer
 
Posts: 29
Joined: Mon Dec 31, 2007 2:33 am
Location: London

Phone Calls - Reality check

Postby evets » Thu Jan 31, 2008 3:10 pm

OK, lets talk real-world for a second. Not to sound too cynical, but what do you suppose the likelihood is that when/if
the G-Phone comes out, we will actually be able to capture the data from the phone calls, either real-time or near real-time?

There are significant real-world apps that we would like to create based on this data. Of course, the carriers know this, and are afraid? of making the data accessible. Anyone hazard a guess?

Steve-O
evets
Freshman
Freshman
 
Posts: 2
Joined: Wed Jan 30, 2008 11:07 pm
Location: Michigan

Top

Return to General

Who is online

Users browsing this forum: No registered users and 6 guests