Simplified context checking as Android 2.2.1 fails on this check