Make an Android app able to capture images, preferably RAW #65
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Related to #64 and Benjamin-Loison/termux-api-package/issues/10.
Output:
Output:
Could have used:
cff225e41e/app/src/main/java/com/termux/api/apis/CameraInfoAPI.java
cff225e41e/app/src/main/java/com/termux/api/apis/CameraPhotoAPI.java (L79)
e62bdadea3/scripts/termux-camera-photo.in
Is not there an open-source app able to capture RAW images? But maybe have to pay attention how they proceed then.
As a first step just taking a JPEG picture would be a good start.
https://developer.android.com/media/camera/camerax/take-photo#java
https://developer.android.com/media/camera/camera2/capture-sessions-requests
Just copy-pasting and correcting errors of
cff225e41e/app/src/main/java/com/termux/api/apis/CameraPhotoAPI.java
seems to be the most promising.May have to modify
AndroidManifest.xml
and provide permissions.cff225e41e/app/src/main/AndroidManifest.xml
Currently facing:
I forgot:
cff225e41e/app/src/main/AndroidManifest.xml (L3)
:Now have a compilable app but
/sdcard/0.jpg
is not created. Note thatApp info
>Permissions
only mentionsCamera
, there is nothing related to file access. According toSystem.getProperty("user.dir")
current working directory is/
, my idea was to leverage the given app default folder.Well I based my
AndroidManifest.xml
on Termux API one but the Termux one seems necessary from the file system access point of view:The purpose currently is to have a superset of required permissions that we will be able to minimize afterwards.
Output:
does not seem to have any interesting addition.
diff
:Should check that we log exceptions correctly and monitor if some are triggered.
https://search.f-droid.org/?q=raw&lang=en
Find in page...
raw
does not return interesting entries.3c4cf90b19/datasets/android