views:

40

answers:

1

I have an empty TextView set for my ListView. When there is no data, it shows the empty text, where I have description that they should go to Contacts application.

How can I linkify "Contacts" word so when tapped opens the Contacts application?

+1  A: 

Try setting up a Linkify rule to the content:// URL of the contact in question. Though I am not certain what the pattern would be -- Linkify is designed for things that are obvious regexes. If all you want is for them to tap on the description as a whole, set up an OnClickListener for it.

CommonsWare
I need the uri for the Contacts application, not for a specific contact. Do you know?
Pentium10
There is no `Uri` for an application, per se. You can try using the `Uri` to the `Contacts` collection and see if that works. There should be a `CONTENT_URI` somewhere in the `ContactsContract` set of classes/interfaces.
CommonsWare