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
2
votes
2 answers

Creating Google Location URL by using latitude & longitude information

I have a code where I'm retrieving latitude and longitude information. I'm interested to show that information on map. I would like to create a link for Google map with retrieved "longitude" and "latitude" information. I am using Linkify for this…
sonia
  • 405
  • 2
  • 7
  • 23
2
votes
2 answers

Android, how to tell if user clicks a linkify link, or presses home button

I think I need to put some code within my onStop method. It pertains to a service that should be running only when the activity is finished() but when the user follows some linkify'd text to the web browser, or when the user presses the homescreen,…
CQM
  • 42,592
  • 75
  • 224
  • 366
2
votes
0 answers

Linkify textView and make text selectable

I have a textView and I want to make the text clickable (urls and phone numbers) I have successfully been using Linkify ex Linkify.addLinks(tvDescription, Linkify.ALL); Now I would like to make the text selectable using…
M3rd0n
  • 311
  • 3
  • 14
2
votes
0 answers

Handling Display URLs and actual URLs with Linkify

I am trying to find the best way to implement the following: A normal URL would look like https://www.google.com/something/somethingmore/a_lot_more_stuff.html I'd like to display this as google.com/... in my TextView (for better readability) When…
zeiger
  • 700
  • 5
  • 16
2
votes
1 answer

Linkify - Linking scheme for non-web (internal) event control

I am using Linkify(text, pattern, scheme) to identify regular expressions in text presented in a dialog box. I would like the links to lead the user to other parts of my program. A bit of background: My app is a dictionary-style app. A ListView of…
CaptainProg
  • 5,610
  • 23
  • 71
  • 116
2
votes
2 answers

Capturing TextView clicks in ListView

I’ve a custom ListView containing 4 TextViews. Now, the TextViews have to be Linkifiable. Since Linkify wasn’t working in ListView, I made a callIntent function to see if the link is clickable or not. But if there’s no clickable link, I want to…
Manish Jain
  • 842
  • 1
  • 11
  • 29
2
votes
1 answer

I am using Linkify.WEB_URLS to linkify URLs in text view, but it looks like there's a bug with the regex

I am using Linkify.WEB_URLS to linkify URLs in text view, but it looks like there's a bug with the regex. If I am doing this noteView.setText("go to the website blabla (https://www.test.com/)"); Linkify.addLinks(noteView, Linkify.WEB_URLS); It…
Roman C
  • 21
  • 1
2
votes
1 answer

Update ListView item's drawable state when child clicked

The problem: I have a ListView item with a relatively complex layout. One of the children in the list item view is a TextView with links. The TextView can handle the clicks on links found in it(by using Linkify), and has a OnClickListener that…
markmarch
  • 214
  • 3
  • 7
1
vote
1 answer

fixing parenthesis in regex for linkify php function?

I've implemented "linkify" on our OSticket system and it seems to be working wonderfully, except for one noted flaw that I didn't notice in the documentiation http://jmrware.com/articles/2010/linkifyurl/linkify.php. When the link is followed by a…
PaulHanak
  • 729
  • 2
  • 9
  • 21
1
vote
1 answer

Receiving content:/// URI's with a simple custom provider (ActivityNotFoundException)

I'm writing a Twitter app, and have followed the Linkify guide from android-developers(http://android-deve..linkify-your-text.html) to make usernames (e.g. @brk3) clickable. I have then created a content provider implementation to pick up intents…
brk3
  • 1,524
  • 2
  • 19
  • 31
1
vote
1 answer

Use Twitter linkify in PHP posts

I'm really new to PHP and JavaScript and I made a PHP posting script and I wanted to add twitter linkify to usernames. I put the javascript in the head but no luck. I followed all the directions but I just can't get it to work. Here's my PHP:
Ben Thomson
  • 558
  • 3
  • 8
  • 25
1
vote
1 answer

android:autoLink in listView

I have a listView, and ech item of listView has textView. I have set android:autoLink="web|email" to textView and onTouch listener across each item of listView.When I touch the textView, onTouch is not called. What I want is…
ShineDown
  • 1,881
  • 3
  • 21
  • 29
1
vote
0 answers

JavaScript Regular Expression to linkify text not in tags

I have been using the following linkify code for a while: return str.replace(/(\s|^)(mailto\:|(news|(ht|f)tp(s?))\:\/\/\S+)/g,'$1$2') .replace(/(\s|^)@(\w+)/g, '$1
Eclectic
  • 847
  • 1
  • 11
  • 26
1
vote
2 answers

How do i automatically convert addresses into clickable links in flutter?

In Android we have https://developer.android.com/reference/android/text/util/Linkify and https://developer.android.com/reference/android/widget/TextView#attr_android:autoLink so for example if you SMS someone an address properly formatted with city…
nAndroid
  • 862
  • 1
  • 10
  • 25
1
vote
1 answer

Android include "?" in Linkify text

I used the method found in this link Android: Linkify TextView public static void addLink(TextView textView, String patternToMatch, final String link) { Linkify.TransformFilter filter = new Linkify.TransformFilter() { @Override…
Maurice
  • 6,413
  • 13
  • 51
  • 76