将应用程序中的电话号码链接到拨号器 (Android)

发布于 2024-11-20 00:32:44 字数 197 浏览 5 评论 0原文

如何将电话号码链接到 Android 应用程序上的拨号器?

我已经

android:phoneNumber="true"

在 xml 中尝试了 textView,但这不起作用。

我想要它,以便该人触摸号码,他们的手机拨号器打开,他们可以拨打电话并致电我正在为其开发此应用程序的公司

How do you link a phone number to the the dialer on an Android App?

I have tried the

android:phoneNumber="true"

in the xml for the textView, but that did not work.

I want it so that the person touches the number and their phone's dialer opens up and they can push call and call the company I am developing this app for

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

夜司空 2024-11-27 00:32:44

在 xml 中添加 android:autoLink="phone"

add android:autoLink="phone" in xml

来日方长 2024-11-27 00:32:44

您还可以使用 Linkify 类:

Linkify

You could also use the Linkify class:

Linkify

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文