Something like:
Java.IO.File file = new Java.IO.File(fileNameAndPath);
Android.Net.Uri uri = Android.Net.Uri.FromFile(file);
Intent intent = new Intent(Intent.ActionView);
intent.SetDataAndType(uri, "application/pdf");
intent.SetFlags(ActivityFlags.ClearTop);
context.StartActivity(intent);
This is dealing with a file, but if you've already got the content you might
create the intent with that instead.
Hope this helps,
Andy
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of jnmahi
Sent: 15 June 2011 11:40
To: [email protected]
Subject: [mono-android] Open Pdf
Hi all,
i have an webservice which will return an pdf doc i want to open this
pdf file in my activity so that i can show user on button click ... Can
anyone tell me how to acheive this kind of functionality ... Thanks
inadvance ...
--
View this message in context:
http://mono-for-android.1047100.n5.nabble.com/Open-Pdf-tp4490793p4490793.htm
l
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid