Check if method exists
问题 I want to check if the method Camera.Parameters.getHorizontalViewAngle() exists on the device (it's only available from API 8 and my min SDK API is 7). I tried to use "reflection", as explained here, but it catches an error saying the number of arguments is wrong: java.lang.IllegalArgumentException: wrong number of arguments Anybody could help? Camera camera; camera = Camera.open(); Parameters params = camera.getParameters(); Method m = Camera.Parameters.class.getMethod(