我正在使用 Phonegap
构建应用程序。 HTML,CSS,JS
...
我希望当用户点击需要文件管理器的内容时应用出现。
我知道,我必须在 AndroidManifest 中添加一些内容,但我不知道是什么...有什么帮助吗?
另一个例子:假设我在我的主屏幕 (APEX) 上并且想要选择一个新图标。当我单击该图标时,会出现一个列表,其中包含我可以用来查找该图标的所有应用程序。这些应用程序包括 Astro、Box、SolidExplorer、Gallery 等...如何让我的应用程序出现在该列表中?
最佳答案
您需要在 manifest 中声明您的 Activity
这样的文件 intent-filter 与特定的 data 元素。
例如:
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="file" />
<data android:host="*" />
<data android:pathPattern=".*\\.pdf" />
</intent-filter>
关于ANDROID - Intent 将应用程序作为文件管理器启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11322288/