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
3 answers

linking map address using linkify in android

The following code don't work- TextView myLocation = new TextView(this); myLocation.setText("Sodala, Jaipur, Rajasthan, IN"); Linkify.addLinks(myLocation , Linkify.MAP_ADDRESSES); mainLayout.addView(myLocation);
user1290288
-1
votes
1 answer

I need to call a phone number from my android app? Which one if efficient from the below

1) I have used linkify html method link value = ""+number+""; Linkify.addLinks(t, Linkify.PHONE_NUMBERS); Html.fromHtml(value);` 2) Clickable Span method ClickableSpan clickableSpan = new ClickableSpan()…
-1
votes
1 answer

How do I display a text or a portion in a TextView as a clickable link

There are a lot of answers about how to enable links in a TextView, but I couldn't find anything about how to make [a portion of] text in a TextView look like a link with a custom action. In other words I want to fake a link because the action isn't…
copolii
  • 14,208
  • 10
  • 51
  • 80
-1
votes
1 answer

Android - Create links using TextView

I want to make my TextView as link which can open Web Pages, but the text visible to user is different than the original link. I know how to create links using linkify but it displays the link in the TextView. P.S. I am a beginner, any help will be…
Abdullah
  • 63
  • 3
-1
votes
2 answers

What is wrong with my android code?

public class WypadekInformacjeActivity extends Activity { TextView tv1; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.wypadek); WebView webView =…
Bartek Kosa
  • 842
  • 1
  • 14
  • 25
-1
votes
1 answer

Android Linkify Special Phone Numbers

Hy! My TextView display string that consists of simple text, adresses, phone numbers, e-mail adresses and web urls. I am using Linkify and it works fine for e-mail adresses and web urls, but problem is with phone numbers because Linkify link me…
Mahir Duraković
  • 135
  • 1
  • 23
-2
votes
3 answers

Regex to find words inside a string

Please a little help with regex to use as Pattern in Linkify. I'm trying to extract #hashtags and @mentions inside a string, so I need to find words inside the string that starts with # and @ (and ends with the blank of course), just in a single…
shaithana
  • 2,470
  • 1
  • 24
  • 37
-2
votes
2 answers

jmrware linkify not accepting url without schema (http)

I got a wierd issue with linkify'ing url to clickable links using javascript regular expression. after digging a lot on so.com, i started using jmrware/LinkifyURL.js to convert url's to clickable links. but when try to convert url without schema…
Prasad.CH
  • 492
  • 1
  • 5
  • 25
-4
votes
1 answer

I need www to be linked

function urllinks(str){ return str.replace(/\b((http|https):\/\/\S+)/g,'$1'); } This code is replacing only "http" and "https" texts... but it doesn't replace texts that begins with "www"...
Schito
  • 27
  • 4
-4
votes
1 answer

Linkify text with also www.*** PHP

I was arguing with many regexp to find one supporting simply www.*.com url without the need to put http:// before. At present I'm using: $text= preg_replace("/(^|[\n ])([\w]*?)((ht|f)tp(s)?:\/\/[\w]+[^ \,\"\n\r\t<]*)/is", "$1$2<a href=\"$3\"…
M4rk
  • 2,172
  • 5
  • 36
  • 70
1 2 3
17
18