Placed startActivity outside switch