相关疑难解决方法(0)

如何将文件类型与iPhone应用程序相关联?

关于将iPhone应用程序与文件类型相关联的主题.

这个提供信息的问题中,我了解到应用程序可能与自定义URL协议相关联.

那是差不多一年前,从那时起,Apple推出了"文档支持",它更进一步,允许应用程序与文件类型相关联.文档中有很多关于如何设置应用程序以在遇到未知文件类型时启动其他适当应用程序的讨论.这意味着关联对于任何应用程序都不能开箱即用,就像URL协议注册那样.

这引出了一个问题:让像Safari或Mail这样的系统应用程序实现这个系统来选择相关的应用程序,还是像以前一样什么也不做?

cocoa-touch ios

318
推荐指数
3
解决办法
12万
查看次数

Android文件关联

我的清单:

<intent-filter>
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />
    <data android:scheme="http" android:host="*" android:pathPattern=".*mht" />
    <data android:scheme="https" android:host="*" android:pathPattern=".*mht" />
</intent-filter>
<intent-filter>
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />
    <data android:mimeType="message/rfc822" android:scheme="http" />
    <data android:mimeType="multipart/related" android:scheme="http" />
    <data android:mimeType="message/rfc822" android:scheme="https" />
    <data android:mimeType="multipart/related" android:scheme="https" />
</intent-filter>
Run Code Online (Sandbox Code Playgroud)

结果:

很好奇,不是吗?我在这做错了什么?同样奇怪 - 我的清单:

<intent-filter
    android:icon='@drawable/ic_launcher'
        android:label='AndroidMHT File'
    android:priority='1'>
    <action android:name="android.intent.action.VIEW" />
    <action android:name="android.intent.action.EDIT" /> 
    <action android:name="android.intent.action.PICK" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />
    <data …
Run Code Online (Sandbox Code Playgroud)

android file-association android-manifest mime-types

1
推荐指数
1
解决办法
7522
查看次数