简体   繁体   English

如何从 WebView android 打开 gmail?

[英]How to open gmail from WebView android?

there I am using sites.google.com for my app as a WebView.Here I am having a mail us option on my site, when the user clicks on the Main us button it should redirect him to Gmail app rather than a website.我在我的应用程序中使用 sites.google.com 作为 WebView。我的网站上有一个邮件我们选项,当用户点击 Main us 按钮时,它应该将他重定向到 Z7D53CBD3F0C0E2AF31C3BA1EAB940 应用程序。

If the link is mailto:example@gmail.com it should automatically open a selection of mail apps.如果链接是mailto:example@gmail.com ,它应该会自动打开一系列邮件应用程序。 You shouldn't have to do any changes in your app, but in the HTML of the webpage.您不必在您的应用程序中进行任何更改,而是在网页的 HTML 中进行。

Example:例子:

<a href="mailto:example@gmail.com?subject=Hello%20world!" target="_blank">Mailto with subject</a>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM