Trying to intercept outgoing calls and have a good solution for
- nexus 1 stock android 2.2
- HTC Desire 2.2
- Moto defy 2.1
But 2.1 doesnβt work on the Samsung Galaxy S, has anyone 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 is added.
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()); } }
source share