0

Possible Duplicate:
Launch an app from within another (iPhone)

i want to launch another Application in iphone sdk...for example the user has downloaded two application from appstore.when he touch the button which is in one APplication, Another Application must be opened, current one must be closed..is it Possible?

Community
  • 1
  • 1
  • @Paul Alexander It is interesting to notice that all answer that has been provided and which is also right have been down voted... with possible reason to take revenge of down voting wrong answer (which has been deleted ) – Mihir Mehta Jan 21 '11 at 07:32

3 Answers3

0

I'm pretty sure the only way you can do this is if the second application registers itself as a handler for some DocumentType, and then the first application handles such a document. The user will be prompted to open the document with the second application. You can read more details here.

You can't just launch applications on behalf of the user, though.

Community
  • 1
  • 1
Adrian Petrescu
  • 16,629
  • 6
  • 56
  • 82
0

You can register a custom URL Scheme in your Application B, and then open it from your Application A using this custom URL Scheme.

More info here

HyLian
  • 4,999
  • 5
  • 33
  • 40
0

If the target application has a registered custom url scheme, you can use that to open the other app.

http://iosdevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html

Cœur
  • 37,241
  • 25
  • 195
  • 267
Paul Alexander
  • 31,970
  • 14
  • 96
  • 151