This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var win = Ti.UI.currentWindow; | |
Titanium.PageFlip = Ti.PageFlip = require('ti.pageflip'); | |
var pdf = 'http://assets.appcelerator.com.s3.amazonaws.com/docs/Appcelerator-IDC-Q1-2011-Mobile-Developer-Report.pdf'; | |
var fileName = pdf.split('/').pop(); | |
var pdfFile = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, fileName); | |
function downloadPDF() { | |
var progressBar = Ti.UI.createProgressBar({ max: 1, min: 0, value: 0, visible: true }); | |
win.add(progressBar); |