按钮点击后如何开始随机活动? 启动后Button必须以随机模式启动Activity 1,Activity 2或Activity 3 ..我可以这样做吗?
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
start = (Button) findViewById (R.id.bstart);
start.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
// TODO Auto-generated method stub
//here must start a random activity..
}
});