hey guys,
im tired about pick an image and store path in localstorage. anyone can help me to store image path and load image path in background ?
thank you for your time.
My Code:
var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/pick", null, "image/*"); var appControlReplyCallback = { onsuccess: function(data) { for ( var i = 0; i < data.length; i++ ) { if ( data[ i ].key == "http://tizen.org/appcontrol/data/selected" ) { var path = data[ i ].value[ 0 ]; localStorage.setItem("custombgurl", path); } } }, onfailure: function() { console.log('The launch application control failed'); } }; tizen.application.launchAppControl(appControl, null, function() {console.log("launch application control succeed"); }, function(e) {console.log("launch application control failed. reason: " + e.message); }, appControlReplyCallback );
path not saved in localstorage
localStorage.setItem("custombgurl", path);