从Titanium中的资源文件夹打开pdf
在Titanium中,我想打开存储在resources文件夹中的pdf文件,一旦单击事件,它应该在adobe或已安装在我的移动设备上的任何客户端上打开您可以使用intent打开android的pdf,对于iphone,您可以使用webview从Titanium中的资源文件夹打开pdf,titanium,appcelerator-mobile,Titanium,Appcelerator Mobile,在Titanium中,我想打开存储在resources文件夹中的pdf文件,一旦单击事件,它应该在adobe或已安装在我的移动设备上的任何客户端上打开您可以使用intent打开android的pdf,对于iphone,您可以使用webview var strFileName = 'test.pdf'; var f = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, strFileName); Ti.Android.currentAc
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()
}));
你要去哪个站台?感谢您可以使用Tianium中的webview打开pdf文件。android和iphone我都在资源文件夹中存储了pdf文件。您可以告诉我如何在webview上打开它,或者您可以访问下面的链接以供参考。