Closed Bug 722675 Opened 12 years ago Closed 12 years ago

input type=file accept=image/* accesses camera directly instead of camera intent (thus camera app)

Categories

(Firefox for Android Graveyard :: General, defect)

Other
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: tantek, Unassigned)

Details

Fennec nightly running on Nexus S / Android with

<!DOCTYPE html><title></title><body><input type=file accept="image/*"/></body>

directly accesses the camera instead of the camera intent which would open the camera app which is what is expected (e.g. it's what happens in native apps with their own camera buttons, e.g. the Twitter app).

Related devmo page: https://developer.mozilla.org/en/HTML/Element/Input#Image_capture_from_cameras
Are you sure you're using native fennec? There's no way it can use the xul previewer and directly grab frames from the camera.

The code path in native fennec uses an intent to launch the camera app (see http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/GeckoApp.java#2388)
comment 0 describes the behavior with XUL Fennec indeed. With Native Fennec, the camera app doesn't show up in the list of apps to use, though.
Mounir, what's in the list of apps that you get?
If there's only one app that can serve the intent, it's expected to not have an app picker I think.
(In reply to Fabrice Desré [:fabrice] from comment #3)
> Mounir, what's in the list of apps that you get?
> If there's only one app that can serve the intent, it's expected to not have
> an app picker I think.

I have:
- Choose music track
- Gallery
- Sound Recorder

So, nothing that would serve "taking a picture" intent.
(In reply to Mounir Lamouri (:volkmar) (:mounir) from comment #4)

> I have:
> - Choose music track
> - Gallery
> - Sound Recorder
> 
> So, nothing that would serve "taking a picture" intent.

indeed... can you file another bug on this?
moving to the Fennec product. Please be sure to file that other bug for the intent not finding the camera app.
Product: Fennec Native → Fennec
Actually I think Mounir is seeing Bug 721823.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.