title: How to start new activity by clicking Link in TextView
body: <p>I have ViewActivity with TextView in wich i set Spanned Text from resource txt file. </p>
  
  <p>ViewActivity:</p>
  
  <pre><code>    Spanned textSP = android.text.Html.fromHtml(text);
      tvtv = (TextView)findViewById(R.id.tvtv);
      tvtv.setText(textSP);
      Linkify.addLinks(tvtv, Linkify.WEB_URLS);
  </code></pre>
  
  <p>I create link with some ID information as it is written in this article <a href="https://stackoverflow.com/questions/1697084/handle-textview-link-click-in-my-android-app">handle textview link click in my android app</a>.
  It is necessary that by clicking on the link, download SecondAcitvity (with other TextView) of my application (not the browser).</p>
  
  <p>SecondActivity: </p>
  
  <pre><code>    protected void onCreate(Bundle savedInstanceState) {
      // TODO Auto-generated method stub
      super.onCreate(savedInstanceState);
      setContentView(R.layout.statya);        
      //пытаемся перейти со ссылки
      Uri data = getIntent().getData();
      String data2 = data.getLastPathSegment();
      TextView tvStatya = (TextView)findViewById(R.id.tvStatya);
      tvStatya.setText(data2);
  }
  </code></pre>
  
  <p>}</p>