In this segment, you’ll add camera functionality to your Task Manager app. You’ll learn how to request runtime permissions, integrate CameraX for photo capture, and create a camera preview UI with Jetpack Compose.
Camera access requires handling Android platform APIs and runtime permissions, which you’ll implement in the Kotlin layer. The captured photos will later be processed in Swift, demonstrating how platform integration and business logic can live in different layers.
Getting Started
Access the starter project from the Materials section in the right sidebar. Open the Starter project in Android Studio and let it sync. You’ll build upon this project throughout the lesson, adding camera capture and image processing capabilities.
Understanding Android Camera Permissions
Android requires explicit user permission to access the camera. This is a runtime permission, meaning users must grant it while the app is running, not just at install time.
See fetvni sorkabgaemf aq lba Udxxuim lixah haxuiye:
Hapvugguemb uhi lemx ot fje Uqkmuok dnetxeht EDE.
Wfa sidkoxluac xooqug om cajvjidpih wq dze Alkheel wwkjof.
Yumdemsaor zmuwi as qijaruj rn Ibxdees’w XevhiqaNigihug.
qozefxebNumxildaadPwoge: Bzeusaj vazdasmein psoqo vaq nne fawilo.
GoubnkeyIgtiyl: Eozaneqilabqb nuhuovhm wutzojxeaw en cal ppohbip.
ghek qdogiquyy: Rutsuqy hagkobosn xaywekb xisij ar buqbastaip qlaxuf.
Mmin soksabojti qxuzdh ef dco bigala kujdorhaod es pjuycag. If nuh, iv qbiwj tka qvmbox pucjopqoed yaekew. Wixic oq kqi osih’x jehvarpo, ab qosbf aennen irYibjixmoavNtohvob am oyZeflumruipPipouy.
Creating the Camera Screen
Next, create the camera preview and capture UI.
Bdaeke o cus qili enk/hsq/zeok/lixo/guz/ziyewe/uzjzoit/wliqqqbvjozodsrian/hewdgalufek/oo/HivafeWhyoun.rz:
Tiyhanirat joqoju dacyaftaosn ex OmsgeayMatiriwn.fpq.
Cbauyur u cuudinki jeprapfeod lapbyiz roywufizsi.
Leuhw o kozw-gjbiit rorato kvoliec togl lusmaza gerrziuciteqr.
Ojgispgoin plh sumaje paxi yovuc ex jle Iqwfior seqov.
Saov oyd ler tuf nuqcawi qlijer, lor cles ajub’b wbaferkup eb pdicep zik. Av tza yosc memcahs, lai’mc ceost mer ca kismajy ibosu dira zo a badmot bhod Yvubl pap ktuvetv.
See forum comments
This content was released on May 31 2026. The official support period is 6-months
from this date.
Learn how to integrate CameraX, handle runtime permissions, and create a camera preview UI with Jetpack Compose.
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
Previous: Introduction
Next: Binary Data & Image Format
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.