I am creating an chat application. I have EditText
where user can type and send message to other device. Now my issue is when user type a text something like google.com or www.make.in , I want to show it as Hyper links in chat and on click of the lint i want to open the browser intent.
So how that can be done? Any Idea or suggestion will be helpfull.
Set android:autoLink="all"
in your xml for the edit text. This will convert SMS, URLs, phoen number, etc into clickable links.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.