Support categories and flags in startActivity.