you can set the android:autoLink="all" or whatever attribute you need in
place of "all"

Respectfully, 
Tommy Hartz | DBA 

WEBPRO 
              the web people ™ 
Savannah GA. - 912.988.3065 | Charlotte NC. - 704.814.7277  | Toll
888.999.4887
***********************************************************************

CONFIDENTIALITY: The information contained in this email communication,
including any attached documents or information, is confidential and may
contain proprietary information or legally privileged information. This
email communication is intended solely for use of the named addressee. The
intended recipient may not use, copy, distribute, forward or otherwise
disseminate any part of this email communication except as expressly
permitted by WEBPRO International Inc. If the reader of this email
communication is not the intended recipient, you are hereby notified that
the use, copying, distribution, forwarding or other dissemination of any
part of this communication is strictly prohibited. If you have received this
email communication in error, please immediately notify us by calling
888-999-4887 or an e-mail message addressed to the following:
mailto:le...@webpro.com

*********************************************************************** 

-----Original Message-----
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of Thilo-Alexander
Ginkel
Sent: Sunday, January 03, 2010 10:11 PM
To: Android Developers
Subject: [android-developers] Clickable hyperlinks in AlertDialog

Hello everyone,

apologies if I missed something obvious...

What I am trying to accomplish is to have clickable hyperlinks in the
message text displayed by an AlertDialog. While the AlertDialog
implementation happily underlines and colors any hyperlinks (defined
using <a href="..."> in the string resource passed to
Builder.setMessage) supplied the links do not become clickable.

The code I am currently using looks like this:
        new AlertDialog.Builder(MainActivity.this).setTitle(
                        R.string.Title_About).setMessage(
                        getResources().getText(R.string.about))
                        .setPositiveButton(android.R.string.ok, null)
                        .setIcon(R.drawable.icon).show();

I'd like to avoid using a WebView to just display a text snippet, so
any advice how to get this working is much appreciated!

Thanks,
Thilo

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

Reply via email to