Forum Xamarin.Android

Intent filter documentation

RogerSchmidlinRogerSchmidlin CHUniversity ✭✭✭

Is there a good documentation or examples on how to do intent filters with Xamarin? So far I have implemented what I thought was correct, but it isn't. I would like to only other apps list my apps if the provide a *.wst file. But other apps list my app no matter what. E.g. if a pdf file is about to be opened my app appears in that list too.

`
[IntentFilter (new[]{ Intent.ActionView }, Categories = new[] {
"android.intent.category.DEFAULT",
"android.intent.category.BROWSABLE"
}
, DataMimeType = "/", DataPathPattern = ".*\.wst")]

`

Sign In or Register to comment.