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

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -