Taking photo from camera directly

Hi , I’d like to share my experience about taking photos on a smart phone from camera directly. any comments or suggestions are welcomed!

unlike the PictureUploader, users have to choose “open camera” or “select file” before they can start to take a photo. I want to be able to open the camera directly, on both wrapped native app and web-app.

this is what i did to make it happens:

use the PlatformDetection plugin to detect the “name”,
if he name is “Android Browser”, use the $16 Native apps (bdk) 's plugin: BN-Takephoto,

Otherwise use the $9 Simple Mobile Camera Input’s plugin: MobileCameraInput. (it works on
— wrapped native-app in iPhone.
— web-app in both Android and iPhone
)

and if the OS is Windows or OS X (user is using my app on a computer), it opens File Explorer.

thanks.

4 Likes

I am using the BN-Takephoto to take camera pictures on Android, However, after taking apicture, the user needs to wait 2-5 sec, as for some reason, Android seems to reload the page. Did you experience also this issue? If, were you able to solve it?

I use

you can setup image size to make it work fast!

thank you @ericwuu