ionic - Cordova Camera not working in android phones after building apk with intel xdk -


when test camera project usb connected device works well. have decided build app generate apk file using intel xdk. after building , installing apk on device on click camera button, no event initiated. controller:

    .controller("icontroller", function($scope, $cordovacamera) { $scope.takepicture = function() {     var options = {          quality : 75,          destinationtype : camera.dest  inationtype.data_url,                  sourcetype : camera.picturesourcetype.camera,                  allowedit : false,                 encodingtype: camera.encodingtype.jpeg,                 targetwidth: 350,                 targetheight: 350,                 popoveroptions: camerapopoveroptions,                 correctorientation: true,                 savetophotoalbum: false             };              $cordovacamera.getpicture(options).then(function(imagedata) {                 $scope.imguri = "data:image/jpeg;base64," + imagedata;             }, function(err) {                 // error occured. show message user             });         }     }); 

and index:

<ion-content ng-controller="icontroller">     <div class="item item-image">     <img ng-show="imguri !== undefined" ng-src="{{imguri}}" style="max-width: 40%">     <img ng-show="imguri === undefined" ng-src="http://placehold.it/300x300" style="max-width: 100%">     </div>     <div class="button-bar">     <button ng-click="takepicture()" class="button icon-left ion-android-camera customiconsound">take photo</button>         <button ng-click="takepicture()" class="button button-outline icon-right ion-home customiconsound">gallery!</button>     </div> </ion-content> 

please missing. thanks

i able solve problem using approach after trying on different things. clicked on xdk project tabs clicked plus sign "plugins" clicked "included plugins" , checked "camera" checkbox


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -