Questions tagged [linkify]

An Android utility class with which you can easily link to for example webpages, phone numbers or e-mail addresses.

Linkify is a text utility class in Android with which you can easily link to for example webpages, phone numbers or email addresses.

265 questions
4
votes
2 answers

Can I change TextView link text after using Linkify?

Is is possible to change TextView text after using Linkify to create links? I have something where I want the url to have two fields, a name and id, but then I just want the text to display the name. So I start off with a textview with text that…
jeanh
  • 228
  • 2
  • 10
4
votes
1 answer

JavaScript plugin for finding images links in plain-text and converting them to HTML in angular js

I have a situation where i need to display images if the chat messages come with image link,currently i am displaying just as image link. One solution i thought that i will check for lastIndexOf('.') and get the extension and match it within…
Pratswinz
  • 1,476
  • 11
  • 24
4
votes
1 answer

Android: java.lang.UnsatisfiedLinkError: dlopen failed: libwebviewchromium.so is 32-bit instead of 64-bit

I have a CursorAdapter(called MyAdapter) used with ListView to display lines of message. However, I got a bug report from a user (Phone: Mi 4i, Android: 5.0.2) saying UnsatisfiedLinkError: dlopen failed: libwebviewchromium.so is 32-bit instead of…
4
votes
1 answer

Android: TextView with url end with -/\n Linkify wrongly

Currently, I have a String like http://www.example.com/defg-/\nletters I put this String into a TextView, and make the url clickable by setAutoLinkMask(Linkify.WEB_URLS) and setMovementMethod(LinkMovementMethod.getInstance()) However, the link…
Season
  • 1,178
  • 2
  • 22
  • 42
4
votes
0 answers

Android EditText with Linkify crashes

I have an EditText that includes text which needs to be linkified for urls, phones and email. I have the following xml:
checklist
  • 12,340
  • 15
  • 58
  • 102
4
votes
3 answers

Android linkify URLs links non URLs

I want to make web links inside a textview clickable. I used this code tv.setLinksClickable(true); tv.setAutoLinkMask(Linkify.WEB_URLS); Linkify.addLinks(tv, Linkify.WEB_URLS); which does linkify the web site URLs but also seems to randomly link…
Some1Else
  • 715
  • 11
  • 26
4
votes
1 answer

Android, EditText - How to "delinkify" already linkified (using Linkify class) text

Is there a way how to remove "linkification" that was done by Linkify.addLinks(myEditText, Linkify.WEB_URLS);? It should be disabled by Linkify.addLinks(myEditText, 0);, but it doesn't affect the linkified text at all. Even using…
Quark
  • 1,578
  • 2
  • 19
  • 34
4
votes
1 answer

Android - How to handle when the link is clicked on TextView via Linkify

I wanna do something additional act when the link is clicked on TextView. The link on TextView is made via xml setting or using Linkify class. Like android:autoLink="true" or Linkify(textView, Linkify.WEB_URLS); How do I catch the event when the…
4
votes
1 answer

Linkify / Clickable Text-URLs but ignore those already wrapped in "a href"'s

I’m working on a linkification script in jQuery which sole purpose is to take all the URLs in a textarea and change it to clickable links, in other words, to wrap a a href tag around them. The script that I’m using actually works fine but the…
Emil Devantie Brockdorff
  • 4,724
  • 12
  • 59
  • 76
4
votes
0 answers

Android ExpandableListView with clickable links in child TextView won't expand when touching TextView

I have been searching for a solution to this issue which seems rather trivial. I have an ExpandableListView with various child elements, including a TextView. I would like links to be detected in the TextView, so I have tried using…
mtg169
  • 525
  • 5
  • 8
4
votes
1 answer

Linkify, ListView & ActionMode. Regular Text no longer clickable

So I have a listview that shows random texts. The textview may sometimes be regular text, but can also be URLs and the like. I added the following line to my BaseAdapter's code: Linkify.addLinks(mHolder.content, Linkify.WEB_URLS); Where mHolder is…
daniel_c05
  • 11,438
  • 17
  • 60
  • 78
4
votes
2 answers

get Linkified text from textview-android...?

I have a textview in my android application. textView.setText(message); Linkify.addLinks(textView, Linkify.ALL); with this code it identify phone number,email address, weblink etc. and highlight it for click, so appropriate intent call. I…
Manish Jain
  • 842
  • 1
  • 11
  • 29
4
votes
1 answer

Receive custom intent without activity restart

I have a TextView with some linkification(twitter style): Pattern pattern1 = Pattern.compile("@\\w+"); Linkify.addLinks(textView, pattern1, "my_activity://one="); Pattern pattern2 = Pattern.compile("#\\w+"); Linkify.addLinks(textView, pattern2,…
Mykhailo Gaidai
  • 3,130
  • 1
  • 21
  • 23
3
votes
1 answer

Disable Automatic Linking of Mailing Address in WebView

The android WebView will automatically detect a mailing address in the html and allow you to click on it to launch a map. Is there anyway to disable this without a native code change? Can I add something to the html markup or cancel a javascript…
Jeff
  • 1,538
  • 2
  • 18
  • 33
3
votes
1 answer

Java: using regex to find URL turning them into html link. Also detect if link contain http://, If not, append it

I know this questions get ask a lot, and Kelly Chan did provide an answer that is work for me, however, there still minor problem that I hope the community can help me out. For example if a user type this: Please visit www.google.com Then I want…
Thang Pham
  • 38,125
  • 75
  • 201
  • 285