Open rugk opened 2 years ago
thanks for info.
if i understood https://commonsware.com/blog/2020/08/16/action-image-capture-android-r.html correctly
ACTION_IMAGE_CAPTURE. need EXTRA_INITIAL_INTENTS with a list to other existing, known apps as implemented in
i have added code that should fix the issue for "opencamera" and "simple camera".
unfortunately i cannot test the changes because i have no android-11 or android-12 device and the emulator does not run on my machine.
@rugk can you test my changes and confirm that the changes work for you? the latest debug build can be found here:
https://github.com/k3b/CameraFolder/releases/download/v1.0.1/CameraFolder-debug-102.apk
you must uninstall the f-droid installation first before you can install this debug version.
[Update 2022-03-02]
I also asked on reddit to find somebody who can test this fix with android-11.
[Update 2022-03-03]
this versoin did not work. see comment below with new apk version
Using the same workflow you mentioned in your readme, the app crashes when selecting it in the file drawer
I tested it with Camera PX and OpenCamera installed.
@har-nick thanks a lot for testing.
camera found
03-02 18:33:33.707 20766 20766 I k3b.camerafolder: -- additional known camera app added 'net.sourceforge.opencamera' = ResolveInfo{72c1414 net.sourceforge.opencamera/.MainActivity m=0x108000}
but cannot start
de.k3b.android.camerafolder.GetDocument2CameraActivity}: android.content.ActivityNotFoundException: -- No Activity found to handle Intent { act=android.media.action.IMAGE_CAPTURE flg=0x3 clip={text/uri-list hasLabel(0) {U(content)}} (has extras) }
This topic needs further investigation :-(
@har-nick
In https://stackoverflow.com/questions/63246442/android-11-r-return-empty-list-when-querying-intent-for-action-image-capture i found that i need an additional <queries/> entry in manifest file when compiling with android api 30 and later to make it work.
I have added this to the sources and the latest build
https://github.com/k3b/CameraFolder/releases/download/v1.0.1/CameraFolder-debug-102-3.apk
May i ask you to test this version again?
Seems like the same issue, sorry
thanks again for testing.
i ask on stackoverflow what is wrong: https://stackoverflow.com/questions/71338593/action-image-capture-how-to-whitelist-a-different-camerapp-in-android-11-and-la
I have added a stackoverflow-bounty to https://stackoverflow.com/questions/71338593/action-image-capture-how-to-whitelist-a-different-camerapp-in-android-11-and-la but no answer yet.
STR
System
Device: Pixel 4 OS: Android 12, CalyxOS 3.2.0 source: F-Droid version: v5.3.1
Problem
I've reported this to the camera apps like https://github.com/SimpleMobileTools/Simple-Camera-Abandoned/issues/310 or OpenCamera. Apparently, the issue is however an Android one related to how camera apps are handled since Android 11. See See https://www.xda-developers.com/android-11-blocks-third-party-camera-apps-appearing-image-video-picking-intents/
In case I understood it correctly, the calling app needs to whitelist all the camera apps it wants the user to be able to choose.
So could we go though F-Droid at least and whitelist all good/known camera apps? This app here is pretty useless without that…
I'd specifically suggest these:
net.sourceforge.opencamera
com.simplemobiletools.camera
(even though deprecated, may still be useful for those who still use and like it, like me)