Same focal length for any screen orientation

Hi, I have a question, I want to have the same focal length of the virtual camera for any device orientation. Currently when changing to landscape mode a different aspect ratio is used then in portrait mode. im am using

[java]cam.setFrustumPerspective(CAMERA_VIEW_ANGLE, cam.getWidth() / cam.getHeight(), MIN_VIEW_DISTANCE, MAX_VIEW_DISTANCE);[/java]

is that correct? the getWidth and getHeight values are interchanged when changing between portrait and landscape (which is of course correct)

Why do the objects appear bigger in portrait mode then in landscape mode and how do i fix this?

ok it was my fault, the solution is simple:

[java]cam.setFrustumPerspective(CAMERA_VIEW_ANGLE, (float)cam.getWidth() /(float) cam.getHeight(), MIN_VIEW_DISTANCE, MAX_VIEW_DISTANCE);[/java]