我想以编程方式将我的应用添加到手机应用列表中,就像truecaller一样。因此用户可以从此列表中选择我的应用。
请帮帮我。感谢
修改 这是将SMS应用程序添加到默认SMS应用程序列表的文章。 https://android-developers.googleblog.com/2013/10/getting-your-sms-apps-ready-for-kitkat.html
我需要同样的电话应用文章。
答案 0 :(得分:0)
<intent-filter>
<action android:name="android.intent.action.CALL_PRIVILEGED" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="tel" />
</intent-filter>
注意:权限标记需要允许拨打电话。
<uses-permission android:name="android.permission.CALL_PHONE" />
答案 1 :(得分:0)
您可以添加:
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<action android:name="android.intent.action.DIAL"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="tel"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.DIAL"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>