Page 1 of 1

(RPG) Use Image UI Element with Android?

Posted: Thu Mar 28, 2013 7:56 am
by JohnJoiner
I thought I read and/or heard something at some point that taking pictures on Android was not supported. Is this the case?

I've got a LR app that has an image element that when touched, should bring up the "Take a Photo" device app to take a picture and store it on the AS/400. This works fine with iOS, but when touched using an Android device it does not work (the "Take A Photo" app does not appear).

If the 'Image' element is supposed to work on Android, is there some setting on the device that needs to be set to make it call the "Take A Photo" app?

TIA.

JJ

Re: (RPG) Use Image UI Element with Android?

Posted: Thu Mar 28, 2013 8:39 am
by JohnJoiner
I bit more info about this post...

When I touch the 'Image' element on Android, the form shown in the attached is displayed, but once the "Please wait..." message disappears, the form with the "Take New Photo" disappears, so that I am never able to take a picture.

JJ

Re: (RPG) Use Image UI Element with Android?

Posted: Thu Mar 28, 2013 8:51 am
by tsupartono
Do you by any chance have the "OnClick" event handler set on your image?

Re: (RPG) Use Image UI Element with Android?

Posted: Thu Mar 28, 2013 9:39 am
by JohnJoiner
Yep, and that was the problem.

I'd never tested this Android, and it's always worked as expected with iOS, even with the 'onClick' event set.

Apparently there is some difference between how Android and iOS interpret this?

Anyway, it works now on both platforms, so thanks!

JJ