相关疑难解决方法(0)

拦截对HTC感知的ACTION_CALL意图

我有一个活动来通过我的应用程序捕获ACTION_CALL意图intent-filter和路由,这在Nexus one,Moto Blur和Samsung设备上运行良好.但不是HTC意义上的.:(

Intent.ACTION_CALL_BUTTON在何时被称为HTC Sense的按钮被按下,但是当你拨打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) }
Run Code Online (Sandbox Code Playgroud)

我猜这是因为HTC已经把他们自己的感觉拨号器和它做了一些有趣的事情(可能有意图过滤器优先级?).

Updated1:尝试将优先级设置为max 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>
Run Code Online (Sandbox Code Playgroud)

android intentfilter htcsense

7
推荐指数
1
解决办法
3064
查看次数

哪个活动处理Intent.ACTION_CALL_PRIVILEGED?

我一直在挖掘Android 上的Contacts应用程序的源代码,以找出哪个Activity处理Intent.ACTION_CALL_PRIVILEGED.不幸的是,我找不到它的源代码.有谁知道它是如何调用的,甚至更好的地方我能找到它的来源?谢谢!

android android-intent android-activity

6
推荐指数
1
解决办法
6949
查看次数