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
0
votes
1 answer

JS rolling link - using linkify - how to target a specific class?

I'm using this code in my website http://jsfiddle.net/hakim/Ht6Ym/ var supports3DTransforms = document.body.style['webkitPerspective'] !== undefined || document.body.style['MozPerspective'] !== undefined; function…
mattmuirhead
  • 73
  • 1
  • 1
  • 11
0
votes
3 answers

How to replace and shorten hyperlinks in a paragraph of text with JavaScript/jQuery?

Say I have a paragraph of text: The Northrop Grumman X-47B https://en.wikipedia.org/wiki/Northrop_Grumman_X-47B is a demonstration unmanned combat air vehicle (UCAV) designed for carrier-based operations. I want to replace the hyperlink within…
David J
  • 103
  • 2
0
votes
1 answer

TextView with links not clickable at mid/beginning of text when text in Arabic/unicoded

I'm trying to make textView with links clickable. it works fine but the problem when the linkified piece of text is at beginning or middle, it doesn't work. it only shows text as being at link but when click it, it doesn't open. However, when the…
0
votes
1 answer

Selection.setSelection can't get spanned

I am trying to create a ListView with linkes in it's view's. Just like the twitter app. right now that's whats Im doing: I set in the TextView android:autoLink="all". private static class TweetViewHolder { public LinkifiedTextView text; …
roiberg
  • 13,629
  • 12
  • 60
  • 91
0
votes
0 answers

Extracting URL text from TextView with Linkify

I am trying to get the URL text from a link when it is pressed/clicked on and store it into a string. The reason is there are different types of URL's that I am working with that is in the text. The text comes from a JSON into a database stored into…
DDukesterman
  • 1,391
  • 5
  • 24
  • 42
0
votes
1 answer

Linkify in Android Fragment

I am trying to use linkify ina Fragment and I can't get it to actually linkify and I can't find my documentation on how to use it correctly. If someone could help that would be great! ContactFragment.java: public class ContactFragment extends…
GreekOphion
  • 388
  • 6
  • 20
0
votes
2 answers

Clickable URLs in TextView

I can't figure out how to use Linkify for my TextView. I'm currently trying: Linkify.addLinks(myTextView, Pattern.compile("^(https?|ftp|file)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]"), "http://"); I am using this post for my regex,…
RileyE
  • 10,874
  • 13
  • 63
  • 106
0
votes
2 answers

Android linkify how to catch @mentions #hashtags we URLs and have them launch another activity

I am attempting to make a custom linkfy class that will catch twitter #hashtags @mentions and URLs in a text string and have it launch another activity so far I have been able to find some code but the two problems are that it catches URLs and…
Edmund Rojas
  • 6,376
  • 16
  • 61
  • 92
0
votes
1 answer

Unable to define intent data to handle linkify intent

I have an activity that contains the following filter:
Mahdi Hijazi
  • 4,424
  • 3
  • 24
  • 29
0
votes
1 answer

in Android is there any way to wrap Linkify Texts?

I want to show the clickable text instead of using the url in webview. for example my text will be google and when user clicks on it it will start action_view intent to google's url. is it possble?
KaanB
  • 133
  • 15
0
votes
1 answer

Linkify() - activating links

I have added links to text that is surrounded by [square brackets] in a popup dialog box. The links however, are not clickable (nothing happens when they are pressed). I can't work out why(!) Here is my dialog box activity: public void…
CaptainProg
  • 5,610
  • 23
  • 71
  • 116
0
votes
2 answers

Converting a SpannableString to a ClickableSpan

I am trying to make clickable links in text strings that launch an activity when clicked. I have used Linkify() to detect links in my text. This function is capable of adding links to text, but only web URLs. I need to turn my output into a…
CaptainProg
  • 5,610
  • 23
  • 71
  • 116
0
votes
2 answers

Android - Hyperlink missing underline

I use linkify to make a textview work as hyperlink, and it does work nicely. The only issue is the underline is missing, could anyone point me out what could cause the problem? shouldn't the underline come by default? Thanks!
Green Ho
  • 881
  • 3
  • 14
  • 27
0
votes
1 answer

Linkifying tweets using simplepie

I am trying to make the links contained in certain tweets work on my twitter widget, for instance when I tweet an image and twitter turns it into a short link. Here is the code... Thank you in advance for your help! if ( !function_exists(…
Adam
  • 11
  • 2
0
votes
1 answer

is it posiible to use linkify using patterns to make call

is it possible to use linkify using pattern to make a call?i want to display the text "call store" in a textview.when i click on that textview need to make a call to given number.for this i have tried below code. Linkify.addLinks(callStoreTxt…
andro-girl
  • 7,989
  • 22
  • 71
  • 94
1 2 3
17
18