Start a Project

How to launch application from Browser in Android

In this featured blog, I am gonna show you how to open your application from the web. Generally, you have watched on this feature on Amazon, e-bay or many tv applications.

So let’s start,

Follow the below steps for implementing this feature on your app,

Step 1: Add the intent filter in your manifest file,

manifest.xml,

Step 2: You have to Create Uri,

for creating uri, add action, categories and extras if you want to send something from browser to app,

and for converting the above intent in URI, use intent.toUri(Intent.URI_INTENT_SCHEME) method.

Step 3: Add this to the browser side,

After logging you will get below uri,

intent:#Intent;action=com.appopenfromweb.mobikul;category=android.intent.category.DEFAULT;category=android.intent.category.BROWSABLE;S.msg_from_browser=Launched%20from%20Browser;end

Add this uri to your website,

So you have successfully add this functionality in your app.

Thanks for go through this blog. Stay cool and stay updated.

Exit mobile version