[attachment=795]

Activity窗口之间跳转 主要代码:
public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Button button = (Button)findViewById(R.id.firstbtn);
        button.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(MainActivity.this, SecondActivity.class);
                startActivity(intent);
                MainActivity.this.finish();
            }
        });
    }
    ---------------------------
     <activity
            android:name=".SecondActivity"
            android:label="@string/title_second_activity_main"></activity>

例子地址:
http://dl.vmall.com/c03xmasbbi
http://pan.baidu.com/share/link?shareid=135319&uk=3087224563