1. Download our Official Android App: Forums for Android!

Apps Click-able address android

Discussion in 'Android Development' started by Gonzo, Aug 13, 2013.

  1. Gonzo

    Gonzo Newbie
    Thread Starter
    Rank:
    None
    Points:
    36
    Posts:
    11
    Joined:
    Aug 3, 2013

    Aug 3, 2013
    11
    1
    36
    I know there is a way to do it but I cannot find it online because every time I try to search it other stuff pops up!


    What I am trying to do is have the address of a location displayed like this:


    123 Street City, St 12345


    The user of my android app can click the address and it will use the phones gps to find the way to the location from the current location of the user.


    I need help finding the resources like website, or something...Thank you!
     

    Advertisement

  2. Gonzo

    Gonzo Newbie
    Thread Starter
    Rank:
    None
    Points:
    36
    Posts:
    11
    Joined:
    Aug 3, 2013

    Aug 3, 2013
    11
    1
    36
    I found the answer on this website

    Android – Creating links using linkify | aviyehuda.com


    Code (Text):
    1.   TextView myLocation = (TextView) findViewById(R.id.textView4);
    2.         myLocation.setText("The addres you want");
    3.         Linkify.addLinks(myLocation , Linkify.MAP_ADDRESSES);
     

Share This Page

Loading...