andreluizreis
8/16/2017 - 8:04 PM

Phone TextView to open Dialer. Links: https://stackoverflow.com/questions/8599657/dialing-a-phone-call-on-click-of-textview-in-android ||||

TextView tv_contatti2 = new TextView(this); tv_contatti2.setText(contatti);
Linkify.addLinks(tv_contatti2, Linkify.PHONE_NUMBERS);
tv_contatti2.setLinksClickable(true);


// OR

<TextView 
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:autoLink="phone"
    android:text="123 123 1234" />