开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜