how i will apply on click function for following text view data with single line printed data
<pre><code>     public class MainActivity extends Activity {


            TextView tv;
       ArrayList&lt;NameValuePair&gt; nameValuePairs = new ArrayList&lt;NameValuePair&gt;();
                String urlforpost, responseString;
                JSONArray jArray2, jArray1, jArray3, jArray4, jArray5;
                JSONObject json_data;
                String news_date, website_link;
            Long new_date;
            TextView txt1;
            String st = "thsis  djflkdjflk dfk;ldsfk iuer dfhfsdlkaa  jgkfjldf  sfkutroi  sdfkjklsdfj   fsj";
            // String result, s,news_short_description,news_title ,news_detail;
            int news_id, catagoryid, record_id;

            InputStream is = null;
            StringBuilder sb = null;
            String result = null;
            JSONArray jArray;

            @Override
            public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.activity_main);

                try {
                    HttpClient httpclient = new DefaultHttpClient();

                    HttpPost httppost = new HttpPost(
                            "http://www.taxmann.com/TaxmannWhatsnewService/Services.aspx?service=gettopstoriestabnews");
                    httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
                    HttpResponse response = httpclient.execute(httppost);
                    HttpEntity entity = response.getEntity();
                    is = entity.getContent();
                } catch (Exception e) {
                    Log.e("log_tag", "Error in http connection" + e.toString());
                }

                // convert response to string
                try {
                    BufferedReader reader = new BufferedReader(new InputStreamReader(
                            is, "UTF-8"), 8);
                    sb = new StringBuilder();
                    sb.append(reader.readLine() + "\n");
                    String line = "0";
                    while ((line = reader.readLine()) != null) {
                        sb.append(line + "\n");
                    }
                    is.close();
                    result = sb.toString();
                } catch (Exception e) {
                    Log.e("log_tag", "Error converting result " + e.toString());
                }

                // String name;
                try {
                    jArray = new JSONArray(result);
                    JSONObject json_data = null;
                    String myString = null;

                    for (int i = 0; i &lt; jArray.length(); i++) {
                        HashMap&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();
                        json_data = jArray.getJSONObject(i);

                        map.put("id", String.valueOf(json_data.getString("news_id")));

                        map.put("title", json_data.getString("news_title"));
                        map.put("shortdescription",
                                json_data.getString("news_short_description"));
                        map.put("date", json_data.getString("news_date"));
                        myString = myString + "| "
                                + json_data.getString("news_title").toString();
                    }
                    String myString1 = myString.replace("null", "");
                    txt1 = (TextView) findViewById(R.id.twxmorq);
                    txt1.setSelected(true);
                    txt1.setText(myString1);
                } catch (Exception e) {
                    Log.e("Log_Tag", e.toString());
                }

            }
        }

actvity_main.xml 


&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent" &gt;



    &lt;TextView
            android:id="@+id/twxmorq"
            android:layout_width="match_parent"
            android:layout_height="30dp"
            android:layout_marginBottom="5dp"
            android:layout_marginTop="5dp"
            android:ellipsize="marquee"
            android:focusable="true"
            android:focusableInTouchMode="true"
            android:marqueeRepeatLimit="marquee_forever"
            android:padding="5dip"
            android:scrollHorizontally="true"
            android:singleLine="true"
            android:textColor="#FF0000" /&gt;


    &lt;/RelativeLayout&gt;
</code></pre>

<p>this displaying each title in Single Line with Morquee style  partition with '| ' i want to apply 
on click function for Each tile so that if we ll click in first whose id=12068 then it open in web </p>

<p>view with this url</p>

<p><a href="http://www.taxmann.com/TaxmannWhatsnewService/Services.aspx?service=getnewsdetails&amp;newsid=12068" rel="nofollow">http://www.taxmann.com/TaxmannWhatsnewService/Services.aspx?service=getnewsdetails&amp;newsid=12068</a></p>

<p>if another title id is 12067 then on this id title click it should open </p>

<p><a href="http://www.taxmann.com/TaxmannWhatsnewService/Services.aspx?service=getnewsdetails&amp;newsid=12067" rel="nofollow">http://www.taxmann.com/TaxmannWhatsnewService/Services.aspx?service=getnewsdetails&amp;newsid=12067</a></p>

<p>..
so please tell me logic  and also Post related    source i m not understanding this how i will </p>

<p>implement i m new in android development .</p>
