Android Question Listen custom scheme from my app

sktanmoy

Active Member
Licensed User
Longtime User
Hi,
I'm developing an app which is basically a dialer. I want to open my app if someone click a link in any web page where the link href is like tel:1234567890.

I wrote the following code in mainfest editor

B4X:
AddActivityText(Main,
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="tel"/>
</intent-filter>)

Now my app is opening as expected. But how can I get 1234567890 within Main activity to process further?

can you please guide me?
 
Last edited:

JohnC

Expert
Licensed User
Longtime User
It's not very clear to me what you want the app to do.

So, can you explain in more detail what you want to do?

Or provide some sample code of what your app does so far?
 
Upvote 0

sktanmoy

Active Member
Licensed User
Longtime User
It's not very clear to me what you want the app to do.

So, can you explain in more detail what you want to do?

Or provide some sample code of what your app does so far?
I've updated my question with details, can you please check?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
The tel is probably inside the Startingintent
 
Upvote 0
Top