How to call an Android app from a web browser

I want to make a call to an Android app when a button is pressed on some website from a mobile. Suppose I open a single url in an android browser and I want to call my app by clicking a button provided by this site. How to do it?

Suppose we are using a browser other than Chrome and whether it allows

+2


a source to share


3 answers


If you are referring to your application as "myapp: // foo / bar" can you use some kind of intent filter to run your application.

I mean, if you click on the YouTube link in your browser, it will ask if you want to complete the action with the YouTube app or browser.



I've seen similar examples of links to Google Maps (which would open in any browser, Google Maps (?) Or GeoBeagle).

+3


a source


Please take a look at WebViewDemo . Javascript code on a web page can trigger your activity. As well as vice versa.



0


a source


You can't ... if the site is viewed in the default browser (Chrome).

If you already have an application that has a WebView embedded in it, you can do some handling for handling mouse clicks, window alerts, navigation, etc. Otherwise, don't!

-3


a source







All Articles