register for "android.intent.action.NEW_OUTGOING_CALL" and you can get the outgoing call number like this.
public void onReceive(Context context, Intent intent) { String data1= intent.getStringExtra(Intent.EXTRA_PHONE_NUMBER); } On Dec 16, 12:18 am, bparker <cbpar...@gmail.com> wrote: > What is the best way to retrieve the number of a currently outgoing > phone call? > > I tried using a BroadcastReceiver with an intent-filter on > android.intent.action.CALL but it seems to be ignored... because the > same code with a different intent works fine. Am I doing something > wrong? > > Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---