Different actvities depending on multiple checkboxes /Android

view story

http://stackoverflow.com – I have a button that links to another activity, when I click on it it goes to the layout.xml I want it to This is the java file for the main/first screen Button button; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); addListenerOnButton(); } public void addListenerOnButton() { final Context context = this; button = (Button) findViewById(R.id.button1); button.setOnClickListener(new OnClickListener() { @Override public void onClick(View arg0) { Intent intent (HowTos)