String comparison with intent action in case of "toxv2"

I am not very experienced with Java but it seems to be a right way of string comparison.