Hey Karl, You might want to override the "HandleOpenUrl" method on UIApplicationDelegate to handle this as per the docs - http://developer.apple.com/library/ios/#DOCUMENTATION/UIKit/Reference/UIApplicationDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intfm/UIApplicationDelegate/application:handleOpenURL :
Let me know if this works for you, Cheers, ChrisNTR On Thu, Jul 14, 2011 at 8:34 PM, Karl Heinz Brehme Arredondo < k...@e-magesolutions.com> wrote: > Hi Wally, > > First of all, thanks a lot for your book, it's my companion for 8 months… > > I'm trying to put on work "Listing 12-2: Extract open URL information", > where another application (or via Safari URL) I can call a "myapp://" to > call my application and do something with parameters passed back. > > The thing is, my application is still running, and it calls another > application and, at the end of something, this other application callback my > application and, at this time, my application must execute something with > parameters passed back. > > But on book sample we have: > > public override bool FinishedLaunching (UIApplication app, NSDictionary > options) > { > if (options != null) > { > var urlOptionKey = new NSString("UIApplicationLaunchOptionURLKey"); > var urlSourceKey = new > NSString("UIApplicationLaunchOptionsSourceApplicationKey"); > var url = (NSUrl) options[urlOptionKey]; > var source = options[urlSourceKey].ToString(); > Console.WriteLine("Url = " + url.AbsoluteString); > Console.WriteLine("Source = " + source); > } > … > } > > So, as my application is still running/waiting and it's not in the first > view when this happens, I didn't figure out yet what to override inside a > view controller to execute when I type myapp:// on Safari… The application > is called but I don't know how to get this event of external call when it's > already running… FinishedLaunching it the first thing called on App start > but I don't know what to do when it's already running. > > Any tips? > > Thanks, > > Karl > > > _______________________________________________ > MonoTouch mailing list > MonoTouch@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/monotouch > > -- ChrisNTR Microsoft ASPInsider http://weblogs.asp.net/chrishardy http://twitter.com/chrisntr
_______________________________________________ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch