我在主要活动中使用了以下代码
public void button(View v){
//Create an intent to start the new activity.
// Our intention is to start secondActivity
Intent intent = new Intent();
intent.setClass(this,Activity.class);
startActivity(intent);
}
单击按钮时如何显示随机活动?请帮我!