让我的Android应用程序出现在共享列表中
问题描述:
我怎么在这里做我的应用程序出现?
How do i make my application appear here? :
一些信息,导致我把这个code在我的清单
(查看code以下),但它不工作。问题是,如果我想从我的图片库共享图像,我希望看到的应用程序的共享列表上的名单上我的应用程序。任何指针?请帮忙。
some informations led me to put this code on my Manifest
(See code below) but it doesn't work. The thing is if i want to share an image from my gallery, i want to see my app on the list of app on the share list. Any pointers? please help.
<activity
android:name="com.my.package.MyIntent"
android:label="@string/app_name"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="android.intent.action.ALL_APPS" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
</activity>
感谢您:)
答
试试这个方法
<activity
android:name="yourActivity"
android:icon="@drawable/ic_launcher"
android:label="test">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND_MULTIPLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
</intent-filter>
</activity>
有关更多信息,请从其他应用程序和发送简单的数据传送到其它应用