Hi guys, I've build a Xamarin Android App and I want to share images into it from other apps.
To do this I've read some articles on web and I've found some suggestions to implement it.
I modified the Manifest file as follow:
<activity android:name="ChildActivity" > <intent-filter> <action android:name="android.intent.action.SEND" /> <category android:name="android.intent.category.DEFAULT" /> <data android:mimeType="image/*" /> </intent-filter> </activity>
Then into the ChildActivity.cs code I've to manage data sent from other apps.
The problem is that I can't see my app into the "chooser list" from other apps.
For example if I open an image from my Gallery and I click on the share button, the apps list appear but my app is not into this list.
Which is the problem?
Please help...thanks
Posts
I have the same issue as you.
Found this : http://slackshotindustries.blogspot.be/2013/07/using-intents-in-xamarin-to-catch-send.html
But it doesn't work for me
@RiccardoBadini @ClaudedHave Did you guys end up finding a solution for this?
In xamarin use the IntentFilter attribute on startup activity, you will found you app in shared list.
[IntentFilter(new[] { Intent.ActionView }, Categories = new[] { Intent.CategoryDefault},DataMimeTypes = new[] { "text/plain", "/" }, )]
public class StartActivity :Activity
{
Intent intent = Intent;
var shareAction = intent.Action;
var type = intent.Type;
}
--