~/talk

Your Camera app on different form factors

Talkat Android Dev Summit 2022: Form Factors · on Wednesday, 2022-11-09· [android]
links:none on file
slides:none on file

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

  1. 0:00Start
  2. 1:43Camera orientation
  3. 4:23Sensor orientation: 90 degrees
  4. 6:30Jetpack CameraX
  5. 8:23android dev summit
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.