android - NEW_OUTGOING_CALL not being called on Samsung Galaxy S -
android - NEW_OUTGOING_CALL not being called on Samsung Galaxy S -
trying intercept outgoing calls, , have solution working on
nexus 1 stock android 2.2 htc want 2.2 moto defy 2.1but not on samsung galaxy s running 2.1, seen this?
<receiver android:name="com.mypackge.outgoingcalldetection" android:exported="true"> <intent-filter> <action android:name="android.intent.action.new_outgoing_call" android:priority="0" /> </intent-filter> </receiver> <uses-permission android:name="android.permission.process_outgoing_calls" />
update: process_outgoing_calls added.
the receiver:
public class outgoingcalldetection extends broadcastreceiver { private static final string tag = "outgoingcalldetection"; @override public void onreceive(context context, intent intent) { string action = intent.getaction(); log.d(tag, "onreceive, action:" +intent.getaction()); } }
try putting manifest in order suggested google dev: manifest.xml
like this:
<uses-permission /> ... <receiver> <intent-filter> . . . </intent-filter> <meta-data /> </receiver>
there may issue in how devices parse manifest , may not register receiver correctly.
edit: of adt 16 lint tell permissions in wrong place, i'm assuming must more of issue thought
cheers
android broadcastreceiver
Comments
Post a Comment