During the AMIS ADF Masterclass I showed how to take a picture from within an ADF Mobile application, attach it to an Email and send that email out to several recipients. To top it of, I even added the GPS coordinates to the subject, so you know where the picture was taken. And all of that with the push of one single button. Sounds complicated ? Well actually it is very simple. There are two ways to interact with device services. One is by using the page Definition, the second is by using the API.I decided not to use the pageDef, but to invoke the device datacontrol from java by using the API. Then it is also possible to invoke multiple actions in one java method. In this case I take a picture, get the coordinates and send an email. How to take a picture ? Taking a picture is easy. Just call the getPicture() method, and make sure (for this use case) to set Destination Type to File. public String getPicture(){ //destinationType = 1 so that the image is returned as a filename
My findings regarding Oracle ADF, Oracle JET, Oracle Mobile and Oracle Cloud