Hi Mike, thank you for the example.
As you can see in my last mail, i found out that the file must be open for read and cannot be modified iOS copies the file to the personal folder of my app ( in this case it creates the directory "Inbox" and copies the pdf in it) After i read the content in a stream i can delete the file and the folder from the personal. May be you can help me on another question with OpenUrl - "sourceApplication" contains the bundle-id of the source.. Do you know if there is a way to get the app icon (and displayname) via the bundle-id? I want to show the filename, the name and the icon of source-app before the user can perform actions with it inside of my app Thanks =) Von: Mike Bluestein <[email protected]> Datum: Sat, 11 Feb 2012 13:45:48 -0500 An: Benedikt Hübschen <[email protected]> Cc: "[email protected]" <[email protected]> Betreff: Re: [MonoTouch] Access denied when accessing file from OpenUrl 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/Documen > ts/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
