如何插入fileopener插件? [英] How to insert fileopener plugin?

查看:114
本文介绍了如何插入fileopener插件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下面这篇文章。 科尔多瓦打开PDF - fileOpener2

插件配置正确,但它不工作。我得到以下异常:

The plug-in is correctly configured, but it is not working. I get the following exception:

8月10日至27日:05:38.380:W / System.err的(2054):   java.net.MalformedURLException:没有安装处理器此网址   8月10日至27日:05:38.380:W / System.err的(2054):在   org.apache.cordova.file.FileUtils.resolveLocalFileSystemURI(FileUtils.java:626)   8月10日至27日:05:38.380:W / System.err的(2054):在   org.apache.cordova.file.FileUtils.access $ 400(FileUtils.java:52)10-27   08:05:38.380:W / System.err的(2054):在   org.apache.cordova.file.FileUtils $ 14.run(FileUtils.java:385)10-27   08:05:38.380:W / System.err的(2054):在   org.apache.cordova.file.FileUtils $ 25.run(FileUtils.java:551)

10-27 08:05:38.380: W/System.err(2054): java.net.MalformedURLException: No installed handlers for this URL 10-27 08:05:38.380: W/System.err(2054): at org.apache.cordova.file.FileUtils.resolveLocalFileSystemURI(FileUtils.java:626) 10-27 08:05:38.380: W/System.err(2054): at org.apache.cordova.file.FileUtils.access$400(FileUtils.java:52) 10-27 08:05:38.380: W/System.err(2054): at org.apache.cordova.file.FileUtils$14.run(FileUtils.java:385) 10-27 08:05:38.380: W/System.err(2054): at org.apache.cordova.file.FileUtils$25.run(FileUtils.java:551)

我的项目: https://www.dropbox.com/s /e583djlhk0mm6sr/pdf.rar?dl=0

相关code在FileOpenerPlugin.java

The relevant code is in FileOpenerPlugin.java

推荐答案

我看你提供的项目...它的似乎的正确配置。但是...你有一个调用的函数 openPDF()但你不能从你的code的任何地方调用它

I'm looking at your provided project... it seems to be correctly configured. But... you have a function called "openPDF()", but you're not calling it from anywhere in your code.

请使用您的功能,否则它会只是坐在那里,什么也不做。

Make use of your function, otherwise it'll just sit there and do nothing.

这篇关于如何插入fileopener插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆