Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android无法在我的应用程序(Xamarin)中打开xml文件_Android_Xml_File_Xamarin_Android Intent - Fatal编程技术网

Android无法在我的应用程序(Xamarin)中打开xml文件

Android无法在我的应用程序(Xamarin)中打开xml文件,android,xml,file,xamarin,android-intent,Android,Xml,File,Xamarin,Android Intent,请告诉我,为什么android在我尝试打开xml文件时看不到我的应用程序 [Activity(Label = "App3", Icon = "@drawable/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)] [IntentFilter(new[] { Intent.Acti

请告诉我,为什么android在我尝试打开xml文件时看不到我的应用程序

  [Activity(Label = "App3", Icon = "@drawable/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
[IntentFilter(new[] { Intent.ActionSend }, Categories = new[] { Intent.CategoryDefault, Intent.CategoryBrowsable }, DataMimeType = @"text/xml")]
[IntentFilter(new[] { Intent.ActionSend }, Categories = new[] { Intent.CategoryDefault, Intent.CategoryBrowsable }, DataMimeType = @"application/xml")]
如果我在pdf上更改xml,它可以正常工作,但不能使用xml
必须指出的是,我的应用程序可以安全(共享)文件,但无法打开其他应用程序中的xml文件:(

有错误消息吗?没有人。我保存文件,然后查看mime类型的文件。它是text/xml。然后我将其共享到google drive。因此,我尝试打开它,我的应用程序可以打开。如果我尝试使用类似的pdf格式,它工作正常