开发者

Link Phone Number in App to Dialer (Android)

How do you link a phone number to the the dialer on an Androi开发者_开发知识库d 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


add android:autoLink="phone" in xml


You could also use the Linkify class:

Linkify

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜