0

I cannot find this for 4.0.3

I peeked the Intent class in Visual Studio and it seems every other constant mentioned here Android.Content.Intent Class exists except for this one.

I'm attempting to build an "send intent" (Intent.ActionSend) for "sharing" a collection of heterogenous file types selected by user from a GridView (mainly pictures and text documents, but could be more in future so want to support the general case now and be done with it).

samus
  • 6,102
  • 6
  • 31
  • 69
  • 1
    Is there a reason why you cannot just use "type -- Specifies an explicit type (a MIME type) of the intent data. Normally the type is inferred from the data itself. By setting this attribute, you disable that evaluation and force an explicit type."? – Yuchen Apr 17 '17 at 21:32
  • 1
    @YuchenZhong Yeah, I should just try setting it with `setType()`. – samus Apr 18 '17 at 12:18
  • Yay, I am not sure why & where you think there is a `ExtraMimeTypes` property ... – Yuchen Apr 18 '17 at 13:41
  • @YuchenZhong https://developer.android.com/reference/android/content/Intent.html#EXTRA_MIME_TYPES – samus Apr 18 '17 at 14:58
  • @YuchenZhong **Fred**'s answer: http://stackoverflow.com/questions/1698050/multiple-mime-types-in-android – samus Apr 18 '17 at 15:00
  • @YuchenZhong ... oh on second look it seems this flag was **added in 4.4**. It's just that on Xamarin site it says was **"Add in API Level 1"**, so I was thrown off: https://developer.xamarin.com/api/field/Android.Content.Intent.ExtraMimeTypes/ – samus Apr 18 '17 at 15:05
  • Ha, okay. Thanks for sharing that :) – Yuchen Apr 18 '17 at 15:36
  • 1
    @YuchenZhong Sure... The docs say that if anything is specified with **`putExtra()`**, then the evaluation of what is specified in **`setType()`** is skipped. I haven't tested this specifically to be sure, but I have found many examples here and elsewhere that use both together. – samus Apr 18 '17 at 17:07

0 Answers0