Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/209.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何使用我的cordova应用程序打开文件_Javascript_Android_Cordova_Android Intent_Webintents - Fatal编程技术网

Javascript 如何使用我的cordova应用程序打开文件

Javascript 如何使用我的cordova应用程序打开文件,javascript,android,cordova,android-intent,webintents,Javascript,Android,Cordova,Android Intent,Webintents,我正在使用打开通过Dropbox或收件箱发送到我的应用程序的文件 我在清单中添加了以下内容: <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <data android:mimeType="*/*" /> &l

我正在使用打开通过Dropbox或收件箱发送到我的应用程序的文件

我在清单中添加了以下内容:

<intent-filter>
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <data android:mimeType="*/*" />
    <data android:pathPattern="*.json" />
</intent-filter>
我从cordova.js第1097行得到一个错误。消息是
F09 WebIntent1422948397 sError

错误的含义是什么?我应该如何进一步排除故障

此外,欢迎提供有关我在Dropbox中单击“打开方式”或将收件箱中的附件共享到其他应用程序时所发生情况的文档链接

window.plugins.webintent.getExtra(window.plugins.webintent.ACTION_VIEW,
  function(extra) {debugger}, function() {debugger}
);