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

Android Linkify stops getSelectedItemPosition() from working?

I have a ListView which has a TextView in the row. The TextView has been Linkified and has had setMovementMethod(LinkMovementMethod.getInstance()) set on it. The ListView is no longer selectable and the ListView's getSelectedItemPosition() always…
Ian Vink
  • 66,960
  • 104
  • 341
  • 555
0
votes
0 answers

Android Google Maps Linkify Phone Number in Snippet

I am trying to linkify a phone number within a snippet of a google map. Given this code: import com.google.android.gms.maps.*; import com.google.android.gms.maps.model.*; import android.app.Activity; import android.os.Bundle; public class MapPane…
user1625155
  • 501
  • 1
  • 8
  • 15
0
votes
1 answer

Linkify without showing the full url

I have used Linkify.addLinks(textview, Linkify.ALL); To make a TextView clickable, and to act like, well, a link. The problem is, if the link is too large, it looks very ugly. Is there any way to make it shorter, or substitute the url for a text?…
Fustigador
  • 6,339
  • 12
  • 59
  • 115
0
votes
1 answer

android linkify intent

I have a ListView that uses Linkify to create a link to another activity in my app. the url looks something like content://com.myapp/activitiy/view?param=blah this works fine every time. however, in another view, I'm trying to call some code like…
Ben
  • 16,124
  • 22
  • 77
  • 122
0
votes
1 answer

Linkify with RegExp, link words not working

I want to apply this RegExp /([^\s])+/g to a TextView with Linkify to make each word clickable. I tested on http://regexr.com/ that the expression works as I need but when I apply to a Linkify sentence nothing is clickable. I try to do a simple…
rubdottocom
  • 8,110
  • 10
  • 39
  • 59
0
votes
1 answer

Android - how to turn numbers in a TextView into buttons

My utility app requires the user to select a meeting from the calendar, then it removes the non-numerical text, and parses what remains using some logic, with the final aim of identifying two numbers only. Whenever the app fails to remain with 2…
Omar
  • 7,835
  • 14
  • 62
  • 108
0
votes
0 answers

Android how to differentiate clickable links from other text

I have a ListView(with HTML text) which contains hyperlinks in it. I am using the following code to open the hyperlinks in browser : holder.txtTitle = (TextView)row.findViewById(R.id.answerText); …
Shivam Bhalla
  • 1,879
  • 5
  • 35
  • 63
0
votes
1 answer

ACTION_CALL intent, with Linkify?

I have a couple Activities with TextViews that contain phone numbers. What I need is that when the user clicks on one, the phone dials the number. And by "dial", I mean dial, not bring up the dialer with the number preloaded, waiting for the user…
Jeff Dege
  • 11,190
  • 22
  • 96
  • 165
0
votes
2 answers

Linkify in textview which is placed in the listview

I have a listview where every single element of the list has a textview. This textview has following properties: chatText.setMovementMethod(LinkMovementMethod.getInstance()); Linkify.addLinks(chatText, Linkify.ALL); now all links are appearing…
manav patadia
  • 81
  • 1
  • 7
0
votes
2 answers

How can I specify that the contents of a td are what I want the script to run on?

I'm trying to use a jquery userscript on chrome in tampermonkey on a pc. I found a script on here and tried to modify it to linkify the contents of a table. I think the reason it's not working is because I need to specify that inputText is the…
user4605595
0
votes
1 answer

How to make a link clickable in a Google Map Marker InfoWindowAdapter

I'm displaying a couple of markers on a Google Map. When I click on a marker it opens a custom InfoWindowAdapter this.map.setInfoWindowAdapter(new CustomInfoWindowAdapter(getLayoutInflater())); In this CustomInfoWindowAdapter I display some…
user1026605
  • 1,633
  • 4
  • 22
  • 58
0
votes
1 answer

Is there a standard way to have hrefs and telephone numbers clickable in a TextView?

I already know how to use TextView to automatically create clickable links for web addresses, phone numbers, etc.. My question is when you have HTML with hrefs in it as well as phone numbers and you want both clickable, is there a better or more…
John Cummings
  • 1,949
  • 3
  • 22
  • 38
0
votes
1 answer

How to access linkify number

I need to make all numbers in a string become links. The expected action when any of these links is clicked is to append the clicked number to an existing string. I managed to linkify the numbers by using the following code: Pattern myMatcher =…
Omar
  • 7,835
  • 14
  • 62
  • 108
0
votes
2 answers

Exception when using Linkify to access an Activity

I'm getting an exception while trying to launch an Activity on clicking a textview. Here is code am using to access the activity tv1.setText(result+" "); tv1.setEms(5); Pattern pattern =…
0
votes
1 answer

Linkify an address

I am having a problem with the code below setContentView(R.layout.activity_main); TextView myLocation = (TextView)findViewById(R.id.txtAddress); myLocation.setText("123 Main St New York, NY"); Linkify.addLinks(myLocation ,…
Toxicvip1
  • 3
  • 2