# background-cam **Repository Path**: niuB_code/background-cam ## Basic Information - **Project Name**: background-cam - **Description**: Example that shows how to use Camera2 API from a Service - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-08-10 - **Last Updated**: 2021-08-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Using Camera2 API in Background This sample shows how to use Camera2 API from a Service. The Android app is showing 2 ways of using the camera 1. Camera preview is displayed over all other apps, even when your Activity is not foreground 2. There is no preview shown, but the camera still delivers frames that can be processed in the background even when your Activity is not foreground This Android Studio project is related to my blogpost about Camera2 API [sisik.eu/blog/android/media/camera2-from-service](https://sisik.eu/blog/android/media/camera2-from-service)