多个图像选择在android xamarin中

时间:2017-05-30 19:54:47

标签: c# android xamarin xamarin.android

在我的应用中,一个活动用户可以从图库中选择多个图片。 代码是

 Intent i = new Intent();
                i.SetType("image/*");
                i.PutExtra(Intent.ExtraLocalOnly, true);
                i.PutExtra(Intent.ExtraAllowMultiple, true);
                i.SetAction(Intent.ActionGetContent);
                act.StartActivityForResult(Intent.CreateChooser(i, "Select Picture"), 202);

看我写这段代码

   i.PutExtra(Intent.ExtraAllowMultiple, true);

并且它在模拟器中运行良好但在手机中当图库打开并且用户长按图像时,没有选择推特 我该如何解决这个问题。

0 个答案:

没有答案