我想查看与默认的Android PDF阅读器托管的PDF文件,在我的应用程序下面的代码在Xamarin Forms中开始Android活动?
var intent = new Intent(Intent.ActionView);
intent.SetDataAndType(Uri.Parse("http://sample/url.pdf"), "application/pdf");
intent.SetFlags(ActivityFlags.ClearTop);
Android.Content.Context.StartActivity(intent);
我用一个本地项目的代码,所以我知道它的Android中活动。对于Xamarin Forms,我有没有办法从内容页面开始Android活动,反之亦然?