I'm trying to intercept an outgoing call and get its number. I have
two problems with it.
The first is that PhoneStateIntentReceiver.getPhoneState() returns an
enum which is undocumented and thus it is unclear what value (values?)
are relevant for an outgoing call, as opposed to an incoming one.
The second and worse problem is getting the phone number dialed.
Searching the forums and the entire 'net shows I'm not the only one in
dire need for a solution here.
It currently does not seem to be possible. Check out <A HREF="http://
groups.google.com/group/android-developers/browse_thread/thread/
932df5d2c689920d/c2cb6bcda795e825?lnk=gst&q=incoming
+call#c2cb6bcda795e825">this thread</A>, which you have probably
already seen. If anyone out there does know of a method to do this, I
would love to know it as well.
On Jan 14, 8:25 am, Asaf <asafx...@gmail.com> wrote:
> I'm trying to intercept an outgoing call and get its number. I have
> two problems with it.
> The first is that PhoneStateIntentReceiver.getPhoneState() returns an
> enum which is undocumented and thus it is unclear what value (values?)
> are relevant for an outgoing call, as opposed to an incoming one.
> The second and worse problem is getting the phone number dialed.
> Searching the forums and the entire 'net shows I'm not the only one in
> dire need for a solution here.
Joining this one.
I am looking for intercepting any outgoing phone call + the number
dialed when the "send" button is pressed.
Any googler with a solution to this one?
Tomer.
On Jan 14, 6:25 pm, Asaf <asafx...@gmail.com> wrote:
> I'm trying to intercept an outgoing call and get its number. I have
> two problems with it.
> The first is that PhoneStateIntentReceiver.getPhoneState() returns an
> enum which is undocumented and thus it is unclear what value (values?)
> are relevant for an outgoing call, as opposed to an incoming one.
> The second and worse problem is getting the phone number dialed.
> Searching the forums and the entire 'net shows I'm not the only one in
> dire need for a solution here.
> It currently does not seem to be possible. Check out <A HREF="http://
> groups.google.com/group/android-developers/browse_thread/thread/
> 932df5d2c689920d/c2cb6bcda795e825?lnk=gst&q=incoming
> +call#c2cb6bcda795e825">this thread</A>, which you have probably
> already seen. If anyone out there does know of a method to do this, I
> would love to know it as well.
> On Jan 14, 8:25 am, Asaf <asafx...@gmail.com> wrote:
> > Hi,
> > I'm trying to intercept an outgoing call and get its number. I have
> > two problems with it.
> > The first is that PhoneStateIntentReceiver.getPhoneState() returns an
> > enum which is undocumented and thus it is unclear what value (values?)
> > are relevant for an outgoing call, as opposed to an incoming one.
> > The second and worse problem is getting the phone number dialed.
> > Searching the forums and the entire 'net shows I'm not the only one in
> > dire need for a solution here.
> I'm trying to intercept an outgoing call and get its number. I have
> two problems with it.
> The first is that PhoneStateIntentReceiver.getPhoneState() returns an
> enum which is undocumented and thus it is unclear what value (values?)
> are relevant for an outgoing call, as opposed to an incoming one.
> The second and worse problem is getting the phone number dialed.
> Searching the forums and the entire 'net shows I'm not the only one in
> dire need for a solution here.
Finally, I've figured out a way to obtain these events (voice & sms).
It's a dirty hack but until android.telephony.gsm.DriverCall and other
related classes are documented we can use it.
Screencast at http://dtmilano.blogspot.com/2008/01/android-radio-logger.html.
Source its on its way after some issues are solved.
PS: Thanks Gabor for linking my blog in yourlifewithandroid ;-).
On Jan 17, 12:29 am, Gabor Paller <paller.gab...@freemail.hu> wrote:
> On Jan 14, 4:25 pm, Asaf <asafx...@gmail.com> wrote:
> > Hi,
> > I'm trying to intercept an outgoing call and get its number. I have
> > two problems with it.
> > The first is that PhoneStateIntentReceiver.getPhoneState() returns an
> > enum which is undocumented and thus it is unclear what value (values?)
> > are relevant for an outgoing call, as opposed to an incoming one.
> > The second and worse problem is getting the phone number dialed.
> > Searching the forums and the entire 'net shows I'm not the only one in
> > dire need for a solution here.
> Finally, I've figured out a way to obtain these events (voice & sms).
> It's a dirty hack but until android.telephony.gsm.DriverCall and other
> related classes are documented we can use it.
> Screencast athttp://dtmilano.blogspot.com/2008/01/android-radio-logger.html.
> Source its on its way after some issues are solved.
> PS: Thanks Gabor for linking my blog in yourlifewithandroid ;-).
> On Jan 17, 12:29 am, Gabor Paller <paller.gab...@freemail.hu> wrote:
> > I think I made a step toward solving the problem. Now I can retrieve
> > the number immediately
> > after the call was finished (but not when the call was started).
> > Check this out:http://mylifewithandroid.blogspot.com/2008/01/phonecalls.html
> > On Jan 14, 4:25 pm, Asaf <asafx...@gmail.com> wrote:
> > > Hi,
> > > I'm trying to intercept an outgoing call and get its number. I have
> > > two problems with it.
> > > The first is that PhoneStateIntentReceiver.getPhoneState() returns an
> > > enum which is undocumented and thus it is unclear what value (values?)
> > > are relevant for an outgoing call, as opposed to an incoming one.
> > > The second and worse problem is getting the phone number dialed.
> > > Searching the forums and the entire 'net shows I'm not the only one in
> > > dire need for a solution here.