Intent 传递数据
intent.setClass(getApplicationContext(), DetailsActivity.class);
intent.putExtra("id", (String) proList.get(position - 2).getItem("id"));
intent.putExtra("position", position+"");
-------------------------------------------------------------------------------------
id = (String) this.getIntent().getStringExtra("id");
position = (String)this.getIntent().getStringExtra("position");