Hi all,
i opened pdf using below code
FileOutputStream fos = new FileOutputStream(file);
fos.Write(byteArray);
Android.Net.Uri path = Android.Net.Uri.FromFile(file);
Intent intent = new Intent(Intent.ActionView);
intent.SetDataAndType(path, "application/pdf");
intent.SetFlags(ActivityFlags.ClearTop);
try
{
StartActivityForResult(intent, 1);
}
catch (ActivityNotFoundException e)
{
Toast.MakeText(this, "No Application Available to
View PDF", ToastLength.Short).Show();
}
i have pdf reader installed in my emulator ... but its not opening pdf
properly i ayached screenshot ....
http://mono-for-android.1047100.n5.nabble.com/file/n4506008/pdf.jpg
--
View this message in context:
http://mono-for-android.1047100.n5.nabble.com/Open-Pdf-tp4490793p4506008.html
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