I want to show pdf file after downloading (from Internal Storage Custom folder) in my app. I want users can choice their preferred apps to open it. I have used the below mention code but it is not working. How can I do this?
string fileName = "qdummy.pdf";
Android.Net.Uri uri = Android.Net.Uri.Parse("file:///storage/emulated/0/TESTFOLDER/" + fileName);
Intent intent = new Intent(Intent.ActionView);
intent.SetDataAndType(uri, "application/pdf");
intent.SetFlags(ActivityFlags.ClearWhenTaskReset | ActivityFlags.NewTask);
try
{
Application.Context.StartActivity(intent);
}
catch (Exception)
{
Toast.MakeText(Application.Context, "No hay aplicacion instalada para ver PDF", ToastLength.Long).Show();
}