package cn.edu.xjau.activitytest1;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class SecondActivity extends AppCompatActivity {
    private static final String TAG = "Activity";
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        int d1 =0;
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_second);
        
        Log.d(TAG, "Second " + this.toString())
        ;
        Button button2 = (Button) findViewById(R.id.button_2);
        button2.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {
               Intent intent = new Intent(SecondActivity.this , FirstActivity.class);
                startActivity(intent);
            }
        });
    }
    
}
