7

I want to open the camera in an Android device from Saleforce1. I've seen many blogs that say that it is possible in android but always the screenshots are with an IOS device.

Salesforce1 can open the camera when you want to post a picture in chatter like this:

enter image description here

The take picture open the camera directly.

Now in my visualforce page I have a Button to open the camera with this code

<input id="picture_info" type="file" accept="image/*;capture=camera" capture="camera" onchange="" />

But when I click on it, I need to select an Image from my gallery:

enter image description here

enter image description here

I would like to open with a button the camera directly as the Salesforce1 "Take picture" button. Is something that I can do? it is possible?

I'm using a Google Nexus 5 device with Android 5.1, also I tested it with Android 4.4.4 KitKat.

1

Ok Guys, I just saw that now with the last version of Salesforce1 v 10.0, and Android 6.0 the option to use the camera is available. I tried this in the same project without any code change.

| improve this answer | |
-1

You can use this link it will help you a lot but it is working only for Nexus5 and IPhone6 read this article if need some help

Link : http://www.jitendrazaa.com/blog/salesforce/access-camera-and-audio-recorder-of-mobile-device-in-visualforce-and-upload-as-chatter-file/

| improve this answer | |
  • Hi I commented on this blog before, and it seems is only working with apple products, probably now with lighting something can be builded. – Yucel Jan 26 '16 at 15:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.