How to launch application from Browser in Android

Save

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.

. . .
Discuss on Helpdesk

Leave a Comment

Your email address will not be published. Required fields are marked*


4 comments

  • Ankita
    hello this is not opening my app from browser
    • anchit (Moderator)
      Have you followed the blog completely ?
  • Abdul Amin Khan
    Need a demo app for google lens. Its a request if you can provide.
    • Akshay Singh (Moderator)
      Thank you for contacting us. We have created a ticket #440487 on your behalf and our team will assist you shortly.
  • css.php
    Start a Project


      Message Sent!

      If you have more details or questions, you can reply to the received confirmation email.

      Back to Home