startActivity isn't a blocking call, so you would need to explicitly return after that statement.  I think this might fight more nicely into the if...else chain below, though.