depicus

  just another nerd on the interweb…



  • home
  • gallery
  • play page
  • privacy
  • support
  • videos
  • what is depicus

Posts Tagged ‘TextView’

Android TextView making clickable url links

Friday, December 9th, 2011



So simple

View Code JAVA
1
2
3
4
5
6
7
8
9
10
11
12
 
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.help);
 
        TextView urlText;
        urlText = (TextView) findViewById(R.id.lblInfo4);
        String text = "Finally if you need more information then please pop over to <a href='http://support.depicus.com'>support.depicus.com</a> or " +
        		"tweet me <a href='http://twitter.com/#!/depicus'>@depicus</a>.";
        urlText.setText(Html.fromHtml(text));
        urlText.setMovementMethod(LinkMovementMethod.getInstance());
	}

And it should look like this

Tags: Clickable, Java, TextView, URL
Posted in Android | Comments Off

  • how i pay the bills

  • depicus in africa

    depicus in africa
  • my charity page

    JustGiving - Sponsor me now!
  • friends

    • Agency Manager
    • AllClear Travel
    • Climbing Tikes
    • Globe Bloggers
    • Marchday
    • The Travel Toad
  • gallery

    IMG_3038 IMG_3214 IMG_2257 IMG_3586
  • videos

    Vimeo

    YouTube
  • twitter

    • No public Twitter messages.
  • recent comments

    • john coull: correction to above, its www.oakley-ukstore.com
    • john coull: they are at it again. adverts on facebook . they are being hosted by enotch.com on ip address...
    • steve: The site are selling £120+ Oakley sun glasses for £13.00 I think its safe to say they may be either...
    • rob: have received a pair of glasses not what ive ordered they are now telling me the ones ive ordered are out of...
    • phil: hi i have purchased some (stupidly),not arrived yet, will they arrive/will they be fake/plz help

Copyright © - depicus | Entries (RSS) | Comments (RSS)

WordPress theme butchered and amended by me.