~/talk

Your Camera app on different form factors

Talkat Android Dev Summit 2022 · 2022-10-24..11-14· [android]
links:none on file
slides:none on file

Camera sensor orientation can change with foldables and must be read dynamically from CameraCharacteristics (API 32+) rather than cached; Display.getRotation returns 0–3 which you convert to degrees by multiplying by 90. Preview rotation equals sensor orientation minus display rotation (adjust for front/back). Multi-window may require crop or scale to match aspect ratio, not just rotate. Jetpack CameraX auto-transforms previews; a new camera-viewfinder artifact works with Camera2 to handle orientation and sizing for you.

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.