Associate file extension with Xamarin Android application

后端 未结 1 1441
故里飘歌
故里飘歌 2020-12-16 08:19

I am trying to associate a custom file extension with my Xamarin-based Android application. I would like my application to open when the user chooses a particular type of f

相关标签:
1条回答
  • 2020-12-16 08:52

    This ended up working for me:

    [IntentFilter(new[] { Intent.ActionView, Intent.ActionEdit },
        Categories = new[] { Intent.CategoryDefault, Intent.CategoryBrowsable },
        DataScheme = "file", 
        DataHost = "*",     
        DataPathPattern = ".*\\\\.label")]
    
    0 讨论(0)
提交回复
热议问题