package com.example.wangyititle;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

public class Main01Activity extends Activity{
	
	private TextView textView;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.layout_1);
		
		textView = (TextView) findViewById(R.id.textView);
		Intent intent = getIntent();
		Bundle bundle = intent.getExtras();
		
		int id = bundle.getInt("id");
		textView.setText(id+"");
	}
	
}
