我有一个 Activity 来捕捉ACTION_CALL
意图intent-filter
并通过我的应用程序进行路由,该应用程序在Nexus one、Moto Blur 和 Samsung 设备上运行良好。但对HTC 没有意义。:(
按下HTC 感应按钮但未收到拨号时Intent.ACTION_CALL_BUTTON
调用,日志输出显示已发送。ACTION_CALL
android.intent.action.CALL
06-17 12:22:45.173: INFO/ActivityManager(83): Starting activity: Intent {
act=android.intent.action.CALL dat=tel:00390642200001 flg=0x10000000
cmp=com.android.phone/.InCallScreen (has extras) }
我猜这是因为 HTC 已经放置了他们自己的感知拨号器并且它正在做一些有趣的事情(也许有意图过滤器优先级?)。
更新1:尝试将优先级设置为最大 int 值,没有变化。
<intent-filter android:priority="2147483647">
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.CALL" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>