mybutton2 明显没有初始化系统出错都弹这种框, 发Log 才是王道
楼上说的对 my_button2 没初始化。private Button my_button2;onCreate(....){...my_button2 = (Button)findViewById(R.id.xxxxx);...}