Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't open camera from app with non preinstalled camera application only. #7260

Open
Nesaijn opened this issue Sep 29, 2022 · 2 comments
Open
Labels
O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect Something isn't working: bugs, crashes, hangs and other reported problems

Comments

@Nesaijn
Copy link

Nesaijn commented Sep 29, 2022

Steps to reproduce

This only happens when the preinstalled camera application is deactivated but while having another camera application present and active.

  1. Deactivate preinstalled camera application
  2. Install an alternative camera application
  3. Open a chatroom on Element
  4. Press the plus button on the left of the message input field
  5. Choose the camera icon where you can directly take a picture or video

Outcome

What did you expect?

I expect the camera app to open

What happened instead?

A "Sorry, no external application has been found to complete this action" dialog appears.

Your phone model

Google Pixel 6a

Operating system version

Android 13

Application version and app store

Elemen version 1.5.1, olm version 3.2.12 from Play Store

Homeserver

No response

Will you send logs?

Yes

Are you willing to provide a PR?

No

@Nesaijn Nesaijn added the T-Defect Something isn't working: bugs, crashes, hangs and other reported problems label Sep 29, 2022
@yostyle yostyle added S-Minor Impairs non-critical functionality or suitable workarounds exist O-Occasional Affects or can be seen by some users regularly or most users rarely labels Oct 6, 2022
@lclaude
Copy link

lclaude commented Apr 12, 2023

Same situation here with my Pixel 4a and CalyxOS (4.7.5), Element (1.5.28) from F-Droid, and the google camera app (8.8.224...) installed from Aurora.

@ex0ns
Copy link

ex0ns commented Apr 12, 2023

I'm pretty sure this is related to #2600 (and #6422)

Signal, Telegram and Whatsapp bypassed that because they all have their own camera inside the app, which does not rely on the Intent to make it work (https://github.com/vector-im/element-android/blob/110b5cfcb4ff48931973a9e11d05c9eb54640c8a/library/multipicker/src/main/java/im/vector/lib/multipicker/CameraPicker.kt#L59)

I don't think we have a lot of solution here, the only one that I can think of is listing installed packages (packageManager pm = context.getPackageManager();) and looking for Camera Application and the use .setPackage(packageName); in the intent to target a specific app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect Something isn't working: bugs, crashes, hangs and other reported problems
Projects
None yet
Development

No branches or pull requests

4 participants