当用户点击手机号码时,弹出底部表单并要求用户选择应用。
如何在该列表中显示我的应用程序?为此,我需要在我的应用中添加什么权限?
最佳答案
您只需要在 list 中添加几行:
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<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>
</activity>
更多信息在这里:https://medium.com/makingtuenti/android-default-dialer-replacement-part-i-722d05ca50fe
关于安卓 : How to display my app when phone number is tapped (Open With),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56708208/