on 03-31-2017 11:08 AM
Hello Experts,
We have developed a UI5 application by using cordova camera plugin as below:
capturePhoto: function(){
var oNav = navigator.camera;
oNav.getPicture(this.onPhotoSuccess, this.onFail,
{
quality: 10,
destinationType: oNav.DestinationType.DATA_URL,
saveToPhotoAlbum; true
}
},
onPhotoSuccess: function(imageData){
var oImage = this.getView().byId("myImage");
oImage.setSrc("data:image/jpeg;base64", imageData);
}
When the application is accessing from SAP Fiori Client, the Camera API is not responding in Android device. Please suggest.
Thanks,
Padmindra
Check out this resource by Cordova: Android Life Cycle. Basically your application life cycle in Android is terminating the app when a new intent for camera activity is triggered. This means the app is basically shut down by the Android OS, rather than pausing the activity in the background.
The above guide provides a solution where you can save the state of the application before navigating to the camera activity. See if it works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.