cancel
Showing results for 
Search instead for 
Did you mean: 

Camera not working on Hybrid workflow app

Former Member
0 Kudos

Hi All,

I am trying to open camera from Hybdrid workflow app, but i am getting error as: customGetPictureError result: -4

i created one button on screen and setted button key as 'takePhoto' and button type as 'custom'.

and in custom.js i wrote following code

function customAfterMenuItemClick(screen, menuItem)

{

          if (menuItem == "takePhoto")

{

          customGetPictureURIFromCamera();

 

}

}

When i open the app from workflow container i am getting error as: customGetPictureError result: -4

I am trying on Android mobile version (2.3.4)

SUP Version : 2.1.2

Can anyone help me to resolve the issue.

Thanks & Regards

Saket

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Solved...!!!

The same code works on iphone, it should work on android as well which will be higher version like 3.0..

Note: Camera will work only with Button not with Menu Item.

Answers (1)

Answers (1)

rakshit_doshi
Active Contributor
0 Kudos

Hi Saket,

How do you read the URI after camera is launched.

Like suppose if there is a usecase in which we need to capture the image and then store in the database and then read it at a later stage. Is it possible to do that.

Can you please advice. I am very new to workflow.

Thanks,