(RPG) Use Image UI Element with Android?

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
JohnJoiner
Posts: 37
Joined: Fri Oct 19, 2012 8:48 am

(RPG) Use Image UI Element with Android?

Post 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
JohnJoiner
Posts: 37
Joined: Fri Oct 19, 2012 8:48 am

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

Post 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
Attachments
Android Image.png
Android Image.png (37.02 KiB) Viewed 4553 times
tsupartono
Posts: 289
Joined: Wed Apr 18, 2012 10:21 am

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

Post by tsupartono »

Do you by any chance have the "OnClick" event handler set on your image?
JohnJoiner
Posts: 37
Joined: Fri Oct 19, 2012 8:48 am

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

Post 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
Post Reply