I get it working
here my quick and dirty example code for the camera plugin
__________________________________________________________
sap.ui.define([
"sap/ui/demo/nav/controller/BaseController"
], function (BaseController) {
"use strict";
return BaseController.extend("sap.ui.demo.nav.controller.Home", {
onInit : function () {
var me = this;
navigator.camera.getPicture(me.onSuccess, me.onFail, { quality: 50,
destinationType: Camera.DestinationType.FILE_URI });
},
onSuccess: function(imageURI) {
alert(imageURI);
var image = document.getElementById('myImage');
image.src = imageURI;
},
onFail: function(message) {
alert('Failed because: ' + message);
}
});
});