htmlspecialchars() function should be used for security reason to echo values from any variable.
But htmlspecialchars() doe's not work for arrays so following function would...
This article will show you how to lock screen orientation to one direction.
Environment Details:
- Phonegap Build - cli-5.2.0
- Device: iPhone S5 9.3.2
For locking orientation to...
var assetURL = 'http://www.anywebsite.com/test.mp3';
var store = cordova.file.externalRootDirectory; // output in android: file:///storage/emulated/0/
// or
// var store = "cdvfile://localhost/persistent/";
var fileName = 'Sounds/test.mp3';
// NOTE: Sounds folder should...
document.addEventListener("deviceready", init, false);
//The directory to store data
var store;
//File name of our important data file we didn't ship with the app
var fileName = "testfile.txt";
function init()...
/*
############
# Method 1 #
############
*/
// output in android: file:///storage/emulated/0/
var base_url = cordova.file.externalRootDirectory;
// or
// var base_url = "cdvfile://localhost/persistent/";
var new_directory = 'TEST';
// To Create a sub...