0

I'm learning iOS programming. I was wondering if there is any way to show the icons of all the running apps in the phone. I know how to get a list of apps that are running currently, but is it possible to access their icons?

If not, what is the best way to do this? Crawl the appstore for icons and store it in the app?

Andy
  • 245
  • 5
  • 18

3 Answers3

0

If you cannot do it directly through some API trickery, how about a sideways workaround? If you know the names of the apps that are running, you could build a process that grabs the app icons through the iTunes Store Search API (using NSData's initWithContentsOfURL: method (docs), or with NSURLConnection and its delegates).

It might be a bit convoluted, but is probably the most straightforward way of getting the icon of any app that might be running.

0

I have tried to grab app icons using the API and I make it! Take an example of app yelp, the premise is you get the buddleid of this app, which you can refer to Finding list of installed apps on iphone

And https://itunes.apple.com/lookup?bundleId=com.yelp.yelpiphone

helps to get the information in the form of json. Use the value for key "artworkUrl60" to get the icon of yelp

Community
  • 1
  • 1
0

As far as I know there is no API for getting the current running apps in iOS (but there is something like this for Android).

If you want to show only the currently running app icons, how will crawling appstore help?

Srikar Appalaraju
  • 71,928
  • 54
  • 216
  • 264
  • You can use a sysctl call to get the running processes. And then have a mapping somewhere in the cloud between crawled app icons and process names; sync that data with the device. Pretty convoluted way! – Andy Feb 05 '12 at 05:41