クリックしたアイテムの ID を次のアクティビティに渡そうとしていますが、アイテムをクリックするたびに、ここlistviewにある最後のアイテムの ID が常に取得されます。listview
String src = a.getText().toString();
            ListView srceve  = (ListView)findViewById(R.id.list_scr_planner);
            ArrayList<HashMap<String, String>> mylist = new ArrayList<HashMap<String, String>>();
            if(src.length()>0)
            try{
            HttpGet post=new HttpGet("xxxxxxxxxxxxxxxxxxxxxxxxxxxx");
            List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(1);
            nameValuePairs.add(new BasicNameValuePair("eventname", src));
            HttpResponse resp = login.client.execute(post);
            String re = EntityUtils.toString(resp.getEntity());
            Log.i("loggg", "error" + re);
            re= "{\"root\": " + re + "}";
            JSONObject root = new JSONObject(re);  
            JSONArray sessions = root.getJSONArray("root");
            Log.i("loggg", "error" + sessions);
            for(int i=0;i<sessions.length();i++){
                HashMap<String, String> map2 = new HashMap<String, String>();
                JSONObject e = sessions.getJSONObject(i);
                map2.put("event_name", e.getString("name"));
                map2.put("event_date", e.getString("eventdate"));
                mylist.add(map2);
                id = e.getString("id");
            }
        } catch (ClientProtocolException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (JSONException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        SimpleAdapter adapt= new SimpleAdapter(searchevent.this,mylist, R.layout.list_custom ,new String[]{"event_name","event_date"},new int []{R.id.textnam,R.id.textdate});
        srceve.setAdapter(adapt);
        srceve.setOnItemClickListener(new OnItemClickListener() {
            @Override
            public void onItemClick(AdapterView<?> parent, View arg1,
                    int pos, long arg3) {
                // TODO Auto-generated method stub
                parent.getItemAtPosition(pos);
                Toast.makeText(getApplicationContext(), ""+ id + evename, 0).show();
                Intent i = new Intent(searchevent.this, eventDetails.class);
                i.putExtra("ar", id);
                startActivity(i);
            }
        });
どこが間違っているか教えてください。サーバーから送られてくるアイテムの ID を取得しています。ありがとう