Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 phonegap 应用程序,用于处理某种类型的文件。我想把它连接起来,这样你就可以双击任何具有给定扩展名的文件,它将使用我的应用程序打开。
据我所知,这涉及通过启动我的应用程序通过命令行参数传递文件的路径来连接操作系统以响应该扩展名的文件。最后一部分是我卡住的地方。如何读取传递给我的 phonegap 应用程序的任何命令行参数?
这个 SO 答案将使您了解如何注册您的 Android 应用程序以根据 mimeType 或文件扩展名打开。
特定文件扩展名的Android意图过滤器?