AutoLink = "all" Android TextView features

I use the autoLink = "All" function of the TextView to link all the URLs and phone numbers in the TextView.

The problem I am facing is that on the emulator, certain numbers are identified as phone numbers and are available for viewing. On a real device, these numbers are not identified as phone numbers and are not viewable.

Tell me if the TextView contains the number 163111, On emulator is turned on. Clickng requires a user to dial. But on Nexus 7 this number is not available. I looked at the Linkify.addLinks () method, which I thought would explain this behavior, but could not find an explanation.

Has anyone encountered this problem?

What could be the reason for this?

+6
source share
2 answers

Nothing. The emulator worked on 4.2, and the Nex 7 on 4.3

https://android.googlesource.com/platform/frameworks/base/+/430fc97

Modifications in Linkify code were the cause.

+2
source

try the autolink property for textview.

android:autoLink="email|phone|web" 

enter image description here

+3
source

Source: https://habr.com/ru/post/955893/


All Articles