21

22

23

24public class SecondActivity extends Activity { 

    Button btn2; 

    Button btn3; 

    @Override

    protected void onCreate(Bundle savedInstanceState) { 

        super.onCreate(savedInstanceState); 

        setContentView(R.layout.activity_second); 

        btn2 = (Button) findViewById(R.id.btn2); 

        btn2.setOnClickListener(new View.OnClickListener() { 

            @Override

            public void onClick(View v) { 

                EventBus.getInstance().post(new Info("信息1")); 

            } 

        }); 

        btn3 = (Button) findViewById(R.id.btn3); 

        btn3.setOnClickListener(new View.OnClickListener() { 

            @Override

            public void onClick(View v) { 

                EventBus.getInstance().post(new Info2("信息2")); 

            } 

        }); 

    } 

}

那么这些活动之中的“始作俑者”——EventBus类又是什么样的呢?

1