Hi Benedikt, Here's a small sample that registers an app to handle loading a pdf with the system using CFBundleDocumentTypes and overriding OpenUrl in the AppDelegate. I just load it in a UIWebView in this case. I tested it from a pdf attachment in the mail app and it worked ok.
http://dl.dropbox.com/u/38672503/CFBundleDocumentTypeDemo.zip Thanks, Mike 2012/2/11 Benedikt Hübschen <[email protected]> > Hi, > > I'm trying to open a file from another applocation – i've overridden > OpenUrl and registered my app for public.data > Now i'm clicking on a pdf in Mail and want to open it in my app, but > access to the file is denied. > > Access to the path > "/private/var/mobile/Applications/D5B6E1CA-5B8A-4EB5-B3F6-B70537CD762D/Documents/Inbox/12276000005191243.pdf" > is denied. > > System.IO.FileStream(Url.RelativePath,System.IO.FileMode.Open); > > > > > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch > >
_______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
