How to click on list view item? : <p>I have successfully get json data and made a list view. But I'm unable to click on the list item and can't send extras to another activity. here is my adapter.</p>

<p>I want to send address string to new activity. (I'm new in android dev)</p>

<p>Here is my work. What wrong i did?
Lists are showing perfectly but no click is getting. :(</p>

<pre><code>private String TAG = MainActivity.class.getSimpleName();
private ListView lv;
private ListView listView;


ArrayList&lt;HashMap&lt;String, String&gt;&gt; channelList;

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

    channelList = new ArrayList&lt;&gt;();
    lv = (ListView) findViewById(R.id.list);

    new GetChannel().execute();
}





private class GetChannel extends AsyncTask&lt;Void, Void, Void&gt; {
    @Override
    protected void onPreExecute() {
        super.onPreExecute();
        Toast.makeText(LiveStreaming.this, "Streaming list is loading", Toast.LENGTH_LONG).show();
    }

    @Override
    protected Void doInBackground(Void... arg0) {
        HttpHandler sh = new HttpHandler();
        // Making a request to url and getting response
        String url = "http://ubpower.net/cricktv/tv.json";
        String jsonStr = sh.makeServiceCall(url);

        Log.e(TAG, "Response from url: " + jsonStr);
        if (jsonStr != null) {

            try {
                JSONObject jsonObj = new JSONObject(jsonStr);

                // Getting JSON Array node
                JSONArray channel = jsonObj.getJSONArray("channel");

                for (int i = 0; i &lt; channel.length(); i++) {
                   JSONObject c = channel.getJSONObject(i);
                    String id = c.getString("id");
                    String name = c.getString("name");
                    String quality = c.getString("quality");
                    address = c.getString("address");


                    // tmp hash map for single contact
                    HashMap&lt;String, String&gt; channel_hash = new HashMap&lt;&gt;();

                    // adding each child node to HashMap key =&gt; value
                    channel_hash.put("id", id);
                    channel_hash.put("name", name);
                    channel_hash.put("quality", quality);
                    channel_hash.put("address", address);

                    // adding contact to contact list
                    channelList.add(channel_hash);
                }



            } catch (final JSONException e) {
                Log.e(TAG, "Json parsing error: " + e.getMessage());
                runOnUiThread(new Runnable() {
                    @Override
                    public void run() {
                        Toast.makeText(getApplicationContext(),
                                "Json parsing error: " + e.getMessage(),
                                Toast.LENGTH_LONG).show();
                    }
                });

            }

        } else {
            Log.e(TAG, "Couldn't get json from server.");
            runOnUiThread(new Runnable() {
                @Override
                public void run() {
                    Toast.makeText(getApplicationContext(),
                            "Couldn't get json from server. Check LogCat for possible errors!",
                            Toast.LENGTH_LONG).show();
                }
            });
        }

        return null;
    }

    @Override
    protected void onPostExecute(Void result) {
        super.onPostExecute(result);
        ListAdapter adapter = new SimpleAdapter(LiveStreaming.this, channelList,
                R.layout.stream_list, new String[]{ "name","quality","address"},
                new int[]{R.id.channel_title, R.id.channel_quality, R.id.channel_address});

        lv.setAdapter(adapter);




    }

    public AdapterView.OnItemClickListener mMessageClickedHandler = new AdapterView.OnItemClickListener() {
        public void onItemClick(AdapterView parent, View v, int position, long id) {
            Intent intent = new Intent(context, video_view.class);
            intent.putExtra("address", address);
            startActivity(intent);
            lv.setOnItemClickListener(mMessageClickedHandler);

        }

    };

}
</code></pre>

<p>}</p>
