add my application to system shell

smartpro

Member
Licensed User
Longtime User
I devloping Browsing Application, how can i add it to system shell so when user click on link then my app show in browsers list and when click on my app in list my app run url .

thank you
 

yttrium

Active Member
Licensed User
Longtime User
I devloping Browsing Application, how can i add it to system shell so when user click on link then my app show in browsers list and when click on my app in list my app run url .

thank you

You should do this with intent filters.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
See this tutorial: Intent Filters - Intercepting SMS messages in the background

You should add an intent filter similar to:
B4X:
<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:mimeType="*/*" android:host="*"
                android:scheme="http" />
        </intent-filter>
 
Upvote 0

smartpro

Member
Licensed User
Longtime User
sorry ..
when i try code by adding it to manifest file application no show in browser list (on device.)
<code>
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:mimeType="*/*" android:host="*" android:scheme="http" />
</intent-filter>
)
what is the problem please?
</code>
 
Upvote 0

smartpro

Member
Licensed User
Longtime User
thank you for your respond..

I mean when user click on link in other applications then browsers list is shown how can i know this link to open it in webview.

anyway now i cannot display my app on browsers list after add above code at manifest file.
thank you.
 
Upvote 0
Top