Your Camera app on different form factors
summary
Foldables and multi-window mean the physical camera sensor no longer has a fixed alignment, so camera orientation is dynamic and must be read from CameraCharacteristics (API 32+) each time; you must combine that with device rotation and natural orientation to compute preview rotation, and handle mismatched aspect ratios by cropping or scaling for split-screen. TextureView applies sensor but not display rotation. Jetpack CameraX already handles transforms; a new camera-viewfinder artifact lets existing Camera2 apps swap in a surface that fixes orientation and aspect-ratio issues.
AI-written summary · about
chapters (5)
- 0:00Start
- 1:43Camera orientation
- 4:23Sensor orientation: 90 degrees
- 6:30Jetpack CameraX
- 8:23android dev summit



