Use Linkify.

On Sat, Oct 22, 2011 at 8:26 AM, Manikandan M <c2dmdevelo...@gmail.com> wrote:
> Hi Mark,
>
> Thanks for the reply,
>
> Already the textview is autoLinked(android:autoLink) it identifies the
> phone,email,web wherever it contains. all these three are predefined links
>
> 1. if its phone number onclick it opens the dailer
> 2. if its web address it opens the browser.
> 3. if its email then it opens the composer
>
> but this is custom link how do we trigger intent for that ?
>
> Thanks in Advance,
> Manikandan
>
> On Sat, Oct 22, 2011 at 5:37 PM, Mark Murphy <mmur...@commonsware.com>
> wrote:
>>
>> Easiest: use android:autoLink on TextView (or subclases)
>>
>> Slightly harder: use android.text.util.Linkify
>>
>> On Sat, Oct 22, 2011 at 7:54 AM, Manikandan M <c2dmdevelo...@gmail.com>
>> wrote:
>> > Hi all,
>> >
>> > I have a textview that contains link(<a>) how to fire an intent
>> > onclick of the link in textview.
>> >
>> > Example Data for TextView :  this is test string my phone number is
>> > 1234567890 <a href> (contact name)</a>.
>> >
>> >
>> > Then how i fire the intent to show the contact list onclick of the
>> > link :
>> >
>> > Final String  :  this is test string my phone number is 1234567890
>> > (contact name)
>> >
>> >
>> > Please help me,
>> >
>> >
>> > Thanks in Advance,
>> > Manikandan
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to android-developers@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > android-developers+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/android-developers?hl=en
>> >
>>
>>
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://github.com/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> Android Training in NYC: http://marakana.com/training/android/
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in NYC: http://marakana.com/training/android/

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to