Android set autoLink attribute programmatically
问题 <TextView android:text="123456789" android:autoLink="phone"> </TextView> I want to create this TextView from code, however I am encountering countless problems. In the first place, I got halfway creating a TextView and adding this: tw_phone.setAutoLinkMask(0x04); This resulted in a clickable TextView, but when you clicked, a toast said "No application can perform this action", or something similar. I also tried with Linkify.addLinks(tw_phone, Linkify.PHONE_NUMBERS); //and .ALL but it gave me