什么意图过滤器必须我的应用程序涵盖出现在选配时再审从外部应用程序的图像?应用程序、我的、出现在、过滤器

由网友(愈来愈近的渐行渐远。)分享简介:什么是可能的意图过滤器,我需要支付,以确保任何外部应用程序请求的图像会在列表中看到我的应用程序?What are the possible intent-filter I need to cover to make sure that any external app requesting an image will...

什么是可能的意图过滤器,我需要支付,以确保任何外部应用程序请求的图像会在列表中看到我的应用程序?

What are the possible intent-filter I need to cover to make sure that any external app requesting an image will see my app in the list?

要澄清一下,我想我的应用程序出现时做以下内容:

To clarify, I'd like my app to appear when doing the following:

到目前为止,我已经介绍了:

So far I've covered:

<intent-filter>
    <action android:name="android.intent.action.PICK" />
    <category android:name="android.intent.category.DEFAULT" />
    <data android:mimeType="image/*" />
</intent-filter>
<intent-filter>
    <action android:name="android.intent.action.GET_CONTENT" />
    <category android:name="android.intent.category.DEFAULT" />
    <data android:mimeType="image/*" />
</intent-filter>

不过,如果使用的tumblr的应用程序和pressing添加照片,我的应用程序不会出现在选择器对话框。我失去了它过滤掉了?

However, if using the Tumblr app and pressing "Add photo", my app does not appear in the chooser dialog. Which filter am I missing out on?

推荐答案

我已覆盖了正确的意图过滤器,但是的tumblr应用程序需要的类打开的,所以不是我了,我现在正在使用的过滤器:

I had covered the correct intent-filters, however the Tumblr app requires the category OPENABLE, so instead of the filters I had I'm now using:

<intent-filter>
    <action android:name="android.intent.action.PICK" />
    <category android:name="android.intent.category.DEFAULT" />
    <data android:mimeType="image/*" />
</intent-filter>
<intent-filter>
    <action android:name="android.intent.action.GET_CONTENT" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.OPENABLE" />
    <data android:mimeType="image/*" />
</intent-filter>

只有加入一行:

Only adding the line:

<category android:name="android.intent.category.OPENABLE" />
阅读全文

相关推荐

最新文章