Skip to content Skip to sidebar Skip to footer

How To Launch App On Click Of Url In Android

Launch app when click on url if app installed on device. if app not installed on device, open playstore.

Solution 1:

You have to deep link your app, add following lines in activity (Manifiest.xml) which you want to launch

<intent-filter ><actionandroid:name="android.intent.action.VIEW"/><categoryandroid:name="android.intent.category.DEFAULT"/><categoryandroid:name="android.intent.category.BROWSABLE"/><dataandroid:host="screen"android:scheme="appname"/></intent-filter>

in browser when ever you click appname://screen your app activity will be launched,

replace appname and screen as per your requirement

Note if you type this url in browser it will search in google ,for this to work you have to write link in html page

<ahref="appname://screen">Some text</a>

If not working the add android:exported="true" in activity

<activityandroid:name=".activity.MainActivity"android:exported="true">

Post a Comment for "How To Launch App On Click Of Url In Android"