[mono-android] View PDF file in App

Jonathan Pryor jonp at xamarin.com
Thu Jan 12 15:22:12 UTC 2012


On Jan 12, 2012, at 9:42 AM, Daniele Salvatore Albano wrote:
> Naturally when the final user will go back, your last activity will be shown.

Bwa-ha-ha-ha-ha-ha-ha *cough* *splutter*.

While I agree that creating a new Intent to display a PDF is The Android Way, tapping the Back button MAY not, necessarily, display the last activity.

Case in point: use an Intent to open a web page. This will bring Browser to the foreground, and pressing the Back button will not return to your activity, but instead will go back one page in Browser's history.

This is a long-standing complaint by "Apple fanbois": as a user, you never know what the Back button is going to do, as it depends on whether the current app has decided to override the default behavior.

That said, using an Intent to launch a web page/PDF/etc. is The Android Way, and may be perfectly acceptable...assuming that PDFs can be handled. (Presumably they can by Browser, at least, though I haven't actually tried this.)

 - Jon



More information about the Monodroid mailing list