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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to