Is there a way to query the installed apps on an iPhone for an iPhone app? If yes how?
+3
A:
You can't look at a list of installed applications (at least for an app that meets Apple's approval) but you can test whether the phone can open certain URLs using UIApplicatoin
's -canOpenURL:
method:
NSURL *url = [NSURL URLWithString:@"myscheme://test"];
if ([[UIApplication sharedApplication] canOpenURL:someURL]) {
...
}
Jeff Kelley
2010-04-22 21:12:03
Thanks for the answer. Then it seems that there is no public API to get the list of installed applications. I really wanted to know if there is possible to create an iPhone app that can create the list of apps that are installed on my iPhone and send it in mail or share otherwise with someone else.
gyurisc
2010-04-22 22:23:42
Not on the iPhone, sorry, but you could always parse the iTunes library on your Mac or PC to generate a list of applications.
Jeff Kelley
2010-04-23 01:39:10