minor refactoring of Android VideoCapture jni code

making it similar to auto-generated one