开发者

Calling Android intent from Web page?

开发者 https://www.devze.com 2023-01-17 22:00 出处:网络
i want to launch an intent from android website w开发者_JAVA百科hat code do i need to add in the HTML , for example how could i launch the dialer intent after the user click on number in the website .

i want to launch an intent from android website w开发者_JAVA百科hat code do i need to add in the HTML , for example how could i launch the dialer intent after the user click on number in the website .

i saw some example in the web like when you click download app in website and it launches the android market .

thanks


You cannot launch an arbitrary Android Intent purely in HTML. However, the browser automatically detects certain URIs and dispatches them appropriately.

To link to a phone number use the "tel" URI scheme:

<a href="tel:5555551234">Call me!</a>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号