Android Question Intent Filters - Adding my app as a dial option. - SOLVED

Jaco vd Walt

Member
Licensed User
Longtime User
Hi all, hopefully someone can point me in the right direction. I "think" I understand intents and BRs, however what I am trying to achieve is when a user clicks a phone number link in chrome, I want my app to appear as a possible dialer. At this stage no matter what I do, it goes straight to the default Android dialer. Any help (if it is at all possible) would be greatly appreciated.
 

Jaco vd Walt

Member
Licensed User
Longtime User
If anyone else run into this. I fixed it with this in the manifest. Not sure if all is needed. But it works.

B4X:
AddActivityText(Main,
<intent-filter>
                <action android:name="softphone.ACTION_CALL"/>
                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.CALL"/>
                <action android:name="android.intent.action.CALL_PRIVILEGED"/>
                <action android:name="android.intent.action.DIAL"/>
                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.CALL"/>
                <action android:name="android.intent.action.CALL_PRIVILEGED"/>
                <action android:name="android.intent.action.DIAL"/>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.BROWSABLE"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <data android:mimeType="vnd.android.cursor.item/phone"/>
                <data android:mimeType="vnd.android.cursor.item/phone_v2"/>
                <data android:mimeType="vnd.android.cursor.item/person"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.CALL"/>
                <action android:name="android.intent.action.CALL_PRIVILEGED"/>
                <action android:name="android.intent.action.DIAL"/>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.BROWSABLE"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <data android:scheme="sip"/>
                <data android:scheme="sips"/>
                <data android:scheme="tel"/>
            </intent-filter>)
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…