[mono-android] View PDF file in App
Jonathan Pryor
jonp at xamarin.com
Fri Jan 13 14:58:10 UTC 2012
On Jan 13, 2012, at 3:50 AM, Marc Reiter wrote:
> @Jonathan: I 'didn't get it? Should I use an Intent, or do you think this is a poor solution?
It's more a general complaint about Android in general, and one that appears to have been fixed on my N1, at least for web pages and PDF files.
As for whether it's a "poor solution" or not, that depends upon your use case. It might be a perfectly valid solution, though (again, on my N1) PDF files load within QuickOffice, and I don't know if that will be present on all Android devices or not.
I'd still suggest sticking with the intent, and if back button behavior doesn't match your requirements, use a TabActivity to host the PDF content. This would allow you to use an existing PDF display app (if one is present), while allowing you more control over the display.
> Is it possible to link other Andriod Libraries to Mono for Android?
Yes, but presently it's tedious, requiring that you either write Java code and include the Java code in your build process, or use Android.Runtime.JNIEnv to invoke members.
- Jon
More information about the Monodroid
mailing list