Skip to content

Nijatva Camera: capture intents + family hand-offs

Choose a tag to compare

@vasudev-work vasudev-work released this 16 Nov 16:09
· 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_CAPTURE and STILL_IMAGE_CAMERA filters on MainActivity, with singleTop so a second request lands in onNewIntent.
  • With EXTRA_OUTPUT the finished shot is copied into the caller's uri; without it, a 640px bitmap comes back in data. Either way the activity finishes with RESULT_OK, and a failed copy returns RESULT_CANCELED instead 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.