- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
});
});
}
};
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
});
});
}
};
- Tags:
- HTML5
- Intel® XDK
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page