Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

华为P20 QQ 微信打开文件-其他应用打开,显示不出自己的应用图标是咋回事 #745

Open
qsw-net opened this issue Jun 27, 2019 · 6 comments

Comments

@qsw-net
Copy link

qsw-net commented Jun 27, 2019

No description provided.

@danielzwhe
Copy link

是不是 scheme 没配置好呢?

@qsw-net
Copy link
Author

qsw-net commented Jun 28, 2019

是不是 scheme 没配置好呢?
我是这样设置的 出现的现象是刚安装 可以显示,过了1个小时就不行了


            <category android:name="android.intent.category.DEFAULT" />

            <data android:mimeType="image/*" />
            <data android:mimeType="audio/*" />
            <data android:mimeType="video/*" />
            <data android:mimeType="text/*" />
            <data android:mimeType="application/*" />
        </intent-filter>
        <intent-filter android:label="@string/send_title">
            <action android:name="android.intent.action.SEND_MULTIPLE" />

            <category android:name="android.intent.category.DEFAULT" />

            <data android:mimeType="image/*" />
            <data android:mimeType="audio/*" />
            <data android:mimeType="video/*" />
            <data android:mimeType="text/*" />
            <data android:mimeType="application/*" />
        </intent-filter>
        <intent-filter android:label="@string/send_title"
            tools:ignore="AppLinkUrlError">
            <action android:name="android.intent.action.VIEW" />

            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE"/>

            <data android:mimeType="image/*" />
            <data android:mimeType="audio/*" />
            <data android:mimeType="video/*" />
            <data android:mimeType="text/*" />
            <data android:mimeType="application/*" />
        </intent-filter>
        <intent-filter android:label="@string/send_title"
            tools:ignore="AppLinkUrlError">
            <action android:name="android.intent.action.VIEW" />

            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE"/>
            <data android:scheme="file" android:host="*" android:mimeType="*/*"/>

        </intent-filter>

    </activity>

@danielzwhe
Copy link

你试试这样子是否可以,可以指定文件的类型。

<data android:scheme="file" android:host="*" android:mimeType="*/*"/>
<data android:pathPattern=".*\\.pdf"/>
<data android:pathPattern=".*\\.doc"/>
<data android:pathPattern=".*\\.docx"/>
<data android:pathPattern=".*\\.xls"/>
<data android:pathPattern=".*\\.xlsx"/>
<data android:pathPattern=".*\\.ppt"/>
<data android:pathPattern=".*\\.pptx"/>
<data android:pathPattern=".*\\.jpg"/>
<data android:pathPattern=".*\\.jpeg"/>
<data android:pathPattern=".*\\.png"/>
<data android:pathPattern=".*\\.bmp"/>
<data android:pathPattern=".*\\.webp"/>

@qsw-net
Copy link
Author

qsw-net commented Jun 28, 2019 via email

@qsw-net
Copy link
Author

qsw-net commented Jul 1, 2019

你试试这样子是否可以,可以指定文件的类型。

<data android:scheme="file" android:host="*" android:mimeType="*/*"/>
<data android:pathPattern=".*\\.pdf"/>
<data android:pathPattern=".*\\.doc"/>
<data android:pathPattern=".*\\.docx"/>
<data android:pathPattern=".*\\.xls"/>
<data android:pathPattern=".*\\.xlsx"/>
<data android:pathPattern=".*\\.ppt"/>
<data android:pathPattern=".*\\.pptx"/>
<data android:pathPattern=".*\\.jpg"/>
<data android:pathPattern=".*\\.jpeg"/>
<data android:pathPattern=".*\\.png"/>
<data android:pathPattern=".*\\.bmp"/>
<data android:pathPattern=".*\\.webp"/>

么得用

@itpers
Copy link

itpers commented Oct 8, 2019

我也在华为手机上遇到了同样的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants