package org.crazyit.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

/**
 * Description:
 * <br/>site: <a href="http://www.crazyit.org">crazyit.org</a> 
 * <br/>Copyright (C), 2001-2012, Yeeku.H.Lee
 * <br/>This program is protected by copyright laws.
 * <br/>Program Name:
 * <br/>Date:
 * @author  Yeeku.H.Lee kongyeeku@163.com
 * @version  1.0
 */
public class StartActivity extends Activity
{
	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		//»ñÈ¡Ó¦ÓÃ³ÌÐòÖÐµÄbn°´Å¥
		Button bn = (Button)findViewById(R.id.bn);
		//Îªbn°´Å¥°ó¶¨ÊÂ¼þ¼àÌýÆ÷
		bn.setOnClickListener(new OnClickListener()
		{
			@Override
			public void onClick(View source)
			{
				//´´½¨ÐèÒªÆô¶¯µÄActivity¶ÔÓ¦µÄIntent
				Intent intent = new Intent(StartActivity.this
					, SecondActivity.class);
				//Æô¶¯intent¶ÔÓ¦µÄActivity
				startActivity(intent);				
			}		
		});
	}
}