fbpx
33 C
Lahore
- Advertisement -spot_img

TAG

PhoneGap

How to lock screen orientation to portrait or landscape?

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...

Cordova: How to download file and get download progress?

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...

Cordova: How to check if a file exists or not?

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()...

Cordova: How to get list of all Files/Directories in a directory?

function success(entries) { var i; for (i=0; i<entries.length; i++) { console.log('En...

Cordova: How to create directory?

/* ############ # 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...

Latest news

- Advertisement -spot_img