Android Capture Call button
I am new to android ,how can I know if the call button is pressed or i can replace default dialer activity using my dialer I have used following code
<receiver android:name="CallService">
<intent-filter>
<action android:name="android.intent.action.CALL_BUTTON" />
</intent-filter>
</receiver>
and here is my broadcast
public void onReceive(Context context, 开发者_Python百科Intent intent)
{
String mAction = intent.getAction();
Log.e("Intent", mAction);
}
But its not receiving any intent
精彩评论