我想在用户呼叫电话号码时在"完成操作使用"对话框中列出我的应用。我在SO中找到了以下答案,该答案对其他人有用
<intent-filter>
<action android:name="android.intent.action.CALL_PRIVILEGED" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="tel" />
</intent-filter>
经许可<uses-permission android:name="android.permission.CALL_PRIVILEGED" />
但它对我不起作用,可能是我错过了一些东西。我正在 andorid 5(棒棒糖)中对此进行测试。
使用 <intent-filter>
<action android:name="android.intent.action.DIAL"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>