# florent37/CameraFragment

A simple easy-to-integrate Camera Fragment for Android

Repository: https://github.com/florent37/CameraFragment
Canonical: https://ross.abutalabs.com/products/camerafragment
Language: Java
License: Apache-2.0
License Family: permissive
Topics: android, camera, capture, video, photos, api
Archived: true
Last push: 2020-08-06T14:11:49+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3519, "days_push": 2218, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2277, forks 412 (observed 2026-08-28T04:06:33.537736+00:00)

## What it is
CameraFragment is an Android library providing an easy-to-integrate Fragment that previews the camera and offers a simple API to capture photos and videos. It supports flash control, front/back camera switching, photo/video mode toggling, and custom layouts.

## Use cases
- add camera capture to an android app
- take photos from a custom android layout
- record video in an android fragment
- switch between front and back camera in android
- build a custom camera ui without writing camera2 code

## When to choose
- you need a quick, drop-in camera fragment for photo/video capture on Android
- you want a simple API over the camera with flash and camera switching
- you need a customizable camera preview layout in an existing Android app

## When to avoid
- you need actively maintained compatibility across all Android devices (the author recommends CameraKit instead)
- you need advanced camera2/CameraX features like RAW capture or extensions
- you are starting a new project and can use CameraX directly

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, image-processing, video-processing
- domain: mobile-development, android-tools, photography, media
- platform: jvm
- tags: camera, android-fragment, photo-capture, video-recording, java, deprecated-recommendation, android, mobile

## Member repositories
- florent37/CameraFragment (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:33.537736+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:41:26.283640+00:00, confidence not recorded.
  - readme: https://github.com/florent37/CameraFragment (fetched 2026-08-28T04:06:33.537736+00:00, sha 7846972c6bc7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
