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
精彩评论