This example shows, how to start intent from browser:
<a href="/?originalUrl=https%3A%2F%2Friptutorial.com%2F%26quot%3Bintent%3A%2F%2Fhost.com%2Fpath%23Intent%3Bpackage%3Dcom.sample.test%3Bscheme%3Dyourscheme%3Bend%26quot%3B%26gt%3BStart%2520intent%26lt%3B%2Fa%26gt%3B%253C%2Fcode">
This intent will start app with package com.sample.test or will open google play with this package.
Also this intent can be started with javascript:
var intent = "intent://host.com/path#Intent;package=com.sample.test;scheme=yourscheme;end";
window.location.replace(intent)
In activity this host and path can be obtained from intent data:
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
Uri data = getIntent().getData(); // returns host.com/path
}
Intent URI syntax:
HOST/URI-path // Optional host
#Intent;
package=[string];
action="/?originalUrl=https%3A%2F%2Friptutorial.com%2F%5Bstring%5D%3B%2520%2520%2520%2520category%3D%5Bstring%5D%3B%2520%2520%2520%2520component%3D%5Bstring%5D%3B%2520%2520%2520%2520scheme%3D%5Bstring%5D%3Bend%3B%253C%2Fcode">