S
S
stdio962017-06-27 22:12:52
Java
stdio96, 2017-06-27 22:12:52

How to catch the open link event in Android?

Hello. Is there an intent-filter in Android that would catch the page refresh event in a third-party browser (chrome, mozilla, etc.)? I put intent-filter like this:

<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:host="app.hubspot.com" android:scheme="https" />
            </intent-filter>

But it only works on a click on a link with such content. Is there something similar for a redirect?
And the second question: why does this filter only affect clicks on links from chrome?
Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question