I have this code of a listview and I need when I click in every item in the list I want to get the content of item (IMAGE AND TEXT) then I need to send them to an other activity contain (tabhost) this is my code:
listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int
position, long id) {
Intent intent = new Intent(Detail_Activity.this,
MoreDetailActivity.class);
LayoutInflater mInflater = getLayoutInflater();
View myView = mInflater.inflate(R.layout.detail_item, null);
TextView txtid = (TextView) view.findViewById(R.id.tv_name);
ImageView img = (ImageView) view.findViewById(R.id.img_id);
String stg = txtid.getText().toString();
}
});