Android App Development: Difference between revisions
Created page with "Notes on Android App development ==Camera 2 API== ===Getting Started=== <pre> val cameraManager = getSystemService(Context.CAMERA_SERVICE) as CameraManager try { val cam..." |
|||
| Line 4: | Line 4: | ||
==Camera 2 API== | ==Camera 2 API== | ||
===Getting Started=== | ===Getting Started=== | ||
< | <syntaxhighlight lang="kotlin"> | ||
val cameraManager = getSystemService(Context.CAMERA_SERVICE) as CameraManager | val cameraManager = getSystemService(Context.CAMERA_SERVICE) as CameraManager | ||
try { | try { | ||
| Line 21: | Line 21: | ||
println("An exception occurred") | println("An exception occurred") | ||
} | } | ||
</ | </syntaxhighlight> | ||
==Resources== | ==Resources== | ||