TestActivity.java
public class TestActivity extends AppCompatActivity {
public final String TAG = “shengfangzheng”;
TextView textView;
TextView textViewThird;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_test);
Log.i(TAG, “执行了onCreate方法”);
textView = findViewById(R.id.tv_jump);
textViewThird = findViewById(R.id.tv_jump_third);
textView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(TestActivity.this, SecondActivity.class);
startActivity(intent);
}
});
textViewThird.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(TestActivity.this,ThirdActivity.cla