getting position in a list and then display a web view
<p>Hey I am trying to display a web view if someone clicks on the 5th item in a list. </p>

<p>This is the code: </p>

<pre><code>          lv.setOnItemClickListener(new OnItemClickListener() {
        @Override
        public void onItemClick(AdapterView&lt;?&gt; a, View v, int position,
                long id) {

            if (position == 5) {

                Intent intent = new Intent(Intent.ACTION_VIEW);
                Uri uri = Uri.parse(href2_final
                                + "=service&amp;doc_library=ABN01&amp;doc_number="
                                + record_parsed_final
                                + "&amp;line_number=0001&amp;func_code=WEB-FULL&amp;service_type=MEDIA");
                intent.setData(uri);
                startActivity(intent);
            }

        }

    });
</code></pre>

<p>What am I doing wrong? If I delete the IF statement then it will launch the web view when i press any item in the list. </p>

<p>Thanks!</p>
