メインアクティビティで次のコードを使用しました
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);
}
ボタンをクリックしたときにランダムなアクティビティを表示するにはどうすればよいですか? 私を助けてください!