I am making a messaging application in which user can send or receive a message through my App but I want a functionality that if user received an address through SMS then he can click on that and transferred to Google Map and If user received a Mobile Number or telephone number then he can able to call on that number. I implemented all the functionality related to messaging but failed to check that on the behalf of above information. Please suggest me the right solution regarding to the subject.
Thanks in advance.
If you use a
TextViewto display the messages, you can use the attributeautoLinkon theTextViewelement of the layout XML. This will automatically create links when street addresses, phone numbers and e-mail adresses are detected. You’re less in control, but you get a lot for free!From the documentation:
Update
If you want all supported types to be
autoLinkedyou can useandroid:autoLink="all". A concrete example to create auto links foremail,phone, andmap(separated by the|character):It is important to notice that the
autoLinkformapis not perfect. See here and here for more details.