setContentView(R.layout.main);
btnShow = (Button) findViewById(R.id.btnShow);
btnShow.setOnClickListener(new onClickListenerImp());
tvNowId = (TextView) findViewById(R.id.tvNowId);
etNowId = (EditText) findViewById(R.id.etNowId);
}
public class onClickListenerImp implements OnClickListener {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
String idStr = etNowId.getText().toString();
int id = Integer.parseInt(idStr);
if ((-5 < id && id < 9 && id != 7) || id == 10000 || id == 20000
|| id == 30000) {
// onCreate(null);
Intent intent = new Intent(Main.this, Show.class);
// intent.setClass(Main.this, Show.class);
intent.putExtra(“idStr”, idStr);
startActivity(intent);
} else if (id == 7) {
<