此程序用到的功能点也就是intent.setClassName 比较简单 我就直接贴代码了
此activity跳转activity
package com.example.sdkpractice;
import com.example.changelayout.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
public class Capter3_25ForInteractiveActivity extends Activity {
private TextView infoTv;
private Button interactiveBtn;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_3_25forinteractiveactivity);
init();
interactiveBtn.setOnClick