sri
sri

Reputation: 3379

Is possible to initiate a app from another in iphone?

I'm would like initiate another app which is listed in my app when user touch that app. is it possible? help me howto do that?

Upvotes: 1

Views: 132

Answers (3)

fox
fox

Reputation: 152

Yes, it is. Usually it is used to launch a few iPhone APIs such as Phone, Mail, Map, YouTube. But you can use that for launching your own App that have implemented Apple URL Scheme http://www.docstoc.com/docs/3595962/iPhone-URL-Scheme. The idee is that you should create URL with some parameters for app wich you want to launch, and run it. Good luck.

Upvotes: 1

xyzzycoder
xyzzycoder

Reputation: 1831

With a custom URL handler, registered by the destination application, this should be possible.

http://arstechnica.com/apple/guides/2009/03/building-services-into-iphone-applications.ars

Upvotes: 1

John Parker
John Parker

Reputation: 54445

This isn't directly possible - the only way you can execute another application is via a URL handler.

For example, you can open a page in Safari via:

[[UIApplication sharedApplication] [NSURL URLWithString:@"http://apple.com"]];

And you get place a call (albeit with the user's agreement) via:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://xxxx"]];

As such, it really depends on whether on the the application you wish to open has registered a URL handler.

Upvotes: 2

Related Questions