Repository navigation
Nijatva Camera: capture intents + family hand-offs
·
13 commits
to main
since this release
The camera now accepts capture requests from other apps, and the suite helper compiles.
Capture intents
IMAGE_CAPTURE,VIDEO_CAPTUREandSTILL_IMAGE_CAMERAfilters on MainActivity, withsingleTopso a second request lands inonNewIntent.- With
EXTRA_OUTPUTthe finished shot is copied into the caller's uri; without it, a 640px bitmap comes back indata. Either way the activity finishes withRESULT_OK, and a failed copy returnsRESULT_CANCELEDinstead of pretending it worked. - Works for every save path: single photo, Night/HDR/Astro merge, DNG, panorama and video.
Also fixed: NijatvaMediaIntents.kt shipped with every brace doubled (object X {{), which is not Kotlin and broke the build. Braces are single, and MainActivity now delegates its gallery/editor/gallery-app hand-offs to that helper, so the family package list lives in one place.
APK: nijatva-camera-capture-intent-debug.apk - debug build, versionName 0.4.0, versionCode 4, label "Nijatva Camera", both ABIs. Debug key, so uninstall any earlier build signed with a different key first.
Verified: :app:compileFullDebugKotlin and :app:assembleFullDebug succeed, and aapt2 on the built APK shows the three filters and launchMode=1.