将应用程序中的电话号码链接到拨号器 (Android)
如何将电话号码链接到 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在 xml 中添加
android:autoLink="phone"
add
android:autoLink="phone"
in xml您还可以使用 Linkify 类:
Linkify
You could also use the Linkify class:
Linkify