appcelerator mobile - Open pdf from resource folder in Titanium -
itemprop = "text">
In Titanium I want to open a PDF file that is stored in the resource folder, the onclick event should be opened on Adobe or any client
You can open PDF for Android and You can use the webview for the iPhone.
var strFileName = 'test.pdf'; Var f = Ti.Filesystem.getFile (Ti.Filesystem.resourcesDirectory, strFileName); Ti.Android.currentActivity.startActivity (Ti.Android.createIntent ({action: Ti.Android.ACTION_VIEW, Type: 'Application / PDF', data: f.getNativePath ()});
Comments
Post a Comment