Software Archive
Read-only legacy content
17061 Discussions

Debug camera functionality using connected device & get image name

sasanka_h_
Beginner
201 Views
Hi,
 
I have developed an expense claim application using intel XDK 
It helps user to get a picture of their  expense bills and store it on the phone, so that he can claim it later time.
 
In earlier Intel XDK version I could able to debug the app coz there was a debug tab but with the newer version (after 2016 Dec - debug tab is removed) I won't be able to debug for my camera
 
As well as I need to save the captured image into a photo album and save the image name into local storage. Then later time retrieve and show the image by name 
 
1. How can I debug remote connected device camera?
2. How can I get Image name and path using imageURI from following code?
 
here is my code
        return {
        restrict: 'A',
        require: 'ngModel',
        link: function (scope, elm, attrs, ctrl) {
            elm.on('click', function () {
                navigator.camera.getPicture(
                    function (imageURI) {
                        scope.$apply(scope.setReceipt(imageURI));
                    },
                    function (err) {
                        ctrl.$setValidity('error', false);
                        scope.$apply(scope.errorUpload('error'));
                    }, {
                        quality: 50,
                        destinationType: Camera.DestinationType.FILE_URI,
                        correctOrientation: true,
                         saveToPhotoAlbum: true
                    });
            });
        }
    };
0 Kudos
1 Reply
PaulF_IntelCorp
Employee
201 Views

Please do not "shotgun" the forum by making the same post on multiple threads, it ends up wasting the valuable time of the support personnel and just results in confusion. We are not available 24/7, so it may take time to see a response, but we do try to respond to all posts. See this post on another thread > https://software.intel.com/en-us/forums/intel-xdk/topic/705276#comment-1895841 < I'm closing this thread to avoid duplication.

0 Kudos
Reply