camera is not working

Thread is closed for posting
2 posts, 0 answers
  1. Mike
    Mike avatar
    1 posts
    Member since:
    Aug 2015

    Posted 27 Aug 2015 Link to this post

    i put the code in just as the TUT tell me to but it is not working

    source: telerik platform, course: 5/7, add photos to your library using your camera​

    can anyone help?

    (function () {
        document.addEventListener("deviceready", function () {

            window.listView = kendo.observable({
                addImage: function () {
                    var success = function (data) {
                            .prepend(["data:image/jpeg;base64," + data]);
                    var error = function () {
                        navigator.notification.alert("Unfortunately we could not add the image");
                    var config = {
                        destinationType: Camera.DestinationType.DATA_URL,
                        targetHeight: 400,
                        targetWidth: 400
          , error, config);

            var app = new, {
                skin: "flat"
                dataSource: ["images/01.jpg", "images/02.jpg", 
                             "images/03.jpg", "images/04.jpg", 
                             "images/05.jpg", "images/06.jpg", 
                template: "<img src='#: data #'>"



  2. Dimitar Kerezov
    Dimitar Kerezov avatar
    15 posts

    Posted 01 Sep 2015 Link to this post

    Hi Mike,

    The javascript code you've provided seems all right to me. My guess would be there is something wrong with the markup of your project. Could you elaborate a bit further on the issues are you experiencing? For example, what is the exact behavior of the application, blank screen, javascript error or something else?

    Further, feel free to open a support ticket and attach the project in it so we can examine it further.

    Let me know if this helps.

    Dimitar Kerezov
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top