androidautolink

Android:autoLink not working fully on my 4.4 device


I'm new to Android programming, and I had this weird problem, I wanted to make phone numbers in a list clickable, where they send you the the dialer, now this worked on my Android phone, but it seems to only work on numbers of 10-chars, but when I tested it on a virtual device with 4.1.2, it worked well on all numbers in the list, I later tried a 4.4.2 virtual device, and I had the same problem there.

From what I could find on Google, I think the problem starts from Jelly Bean, so, is there a solution to this? I used this in the TextView element in the layout XML fileL android:autoLink="phone"


Solution

  • Was facing the same issue, for all the numbers longer than 10digits, solution is to just format them correctly and instead of 00 add a + sign infront of them, like: if number 00447172737475 , autolink wont work, but for +447172737475 it will work , hope it helps