[android-developers] Re: Outgoing Number Broadcast Receiver.
After looking at the logs little more I see the following in emulator
V/OutgoingCallBroadcaster( 140): Broadcasting intent Intent
{ act=android.intent.action.NEW_OUTGOING_CALL (has extras) }.
Where as in HTC EVO 4G I don't see the above log. And one more
difference is that I do not find the number I dialed in the logs.
I/ActivityManager( 127): Starting activity: Intent
{ act=android.intent.action.CALL dat=tel:xxx-xxx-xxxx flg=0x10000000
cmp=com.android.phone/.InCallScreen (has extras) } from pid 306
The only way I can think of getting the number is from Calllog.
Thanks
lb
On Sep 8, 10:50 pm, lb <lakshman.b...@gmail.com> wrote:
> Hi,
> I'm not sure if this is known issue at least I see some problems being
> reported in older posts.
>
> I dynamically registered a broadcast receiver in my Service class for
> Outgoing call - code snip is below:
> onCreate() {
> :
> IntentFilter ifNum = new IntentFilter();
> ifNum.addAction(Intent.ACTION_NEW_OUTGOING_CALL);
> registerReceiver(mNumReceiver, ifNum);
> :
>
> }
>
> public static class OutgoingNumRecv extends BroadcastReceiver {
> public OutgoingNumRecv() {
> Log.d(LOGTAG, "######## Object Created for OutgoingNum");
> }
> public void onReceive(Context ctxt, Intent newInt) {
> Log.d(LOGTAG, "Got the OutgoingNum receiver event");
> }
>
> }
>
> Without static it is working fine in Emulator but it wasn't receiving
> any events in HTC device. So thought of making it static and add this
> in AndroidManifest.xml.
>
> In AndroidManifest.xml
> <application>
> :
> <receiver
> android:name=".MyTestService.OutgoingNumRecv"
> android:enabled="true"
> android:exported="true">
> <intent-filter
> android:name="android.intent.action.NEW_OUTGOING_CALL" />
> </receiver>
> :
> </application>
> <uses-permission
> android:name="android.permission.PROCESS_OUTGOING_CALLS"/>
> :
>
> Still I do not see broadcast events being received and I also upgraded
> my phone to Gingerbread version (2.3.3 and kernel 2.6.35.10).
>
> Thanks
> lb
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home