how to switch item with urlid(path) on item select
<pre><code>Hits hits = indexSearcher.search( parser.parse("("+ "text:" +mEdit.getText().toString() + ")"));
String txt2[] =new String[100];
String txt="";
for (int i = 0; i &lt; hits.length(); i++)
{
    Document hitDoc = hits.doc(i);
    Log.i("TestAndroidLuceneActivity", "Lucene: " +hitDoc.get("title")+ hitDoc.get("path"));
    txt=hitDoc.get("title");
    txt2[i]=txt;     
    final String path= hitDoc.get("path");
    lv.setAdapter(new ArrayAdapter&lt;String&gt;(Lucenconcept.this,android.R.layout.simple_list_item_1 ,txt2));   
}

lv.setOnItemClickListener(new OnItemClickListener() {
    @Override

    public void onItemClick(AdapterView&lt;?&gt; myAdapter, View myView, int myItemInt, long mylng) {
        Intent intent = new Intent(Lucenconcept.this,ShowDetails.class);
        Bundle bundle = new Bundle();
        bundle.putString("keyLink", path );
        intent.putExtras(bundle);
        startActivity(intent);
    }
});
</code></pre>

<p>I wrote this code for switching another activity but not differing URL-id or path id in bundle. Every url string stored but when I go to next activity.</p>

<pre><code>String link = bundle.getString("keyLink");
Toast.makeText(this,link,Toast.LENGTH_SHORT).show();
</code></pre>

<p>Code for retrieving URL-id or path in next activity, but not differ it gives constant url.
Please help me, I am not able to set the position.</p>
