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?
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?
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.
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
Related
What I want to do is to make an iPhone application for my website similar to the photofunia. The users will be able to select an effect from a list, and then upload their own photo. Then the result will be shown in the browser where the user can save the image and/or publish to website like facebook, etc.
What software can I use to do that? Phonegap, appcelerator, etc? Can some of these help?
Thanks.
First of all, you may be able to make an iPhone app using Adobe Flash and the Adobe Packager for iPhone.
The other option is to get a Mac and Learn Objective-C.
There is no "easy" solution here.
Create a webservice for your website and try to use that in your iPhone Application
Of course I know there is no "easy" solution, but I'm almost sure there are other options for making iphone apps, instead of using Objective-C.
I only don't know the name of the tools.
Flash doesn't works. Adobe Air currently doesn't offer a way to access the camera roll on the ios.
I am writing an app for iphone to go along site my website which tracks the location of the user. Can anyone give me any pointers on where to begin. I am very good with mysql and php etc but I am a novice with iphone apps.
The coordinates from the app need to be able to upload to my api which I have set up.
Thanks
What you probably want to do is create a simple app that can run in the background.
http://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundExecution.html
During background execution you cannot do anything really too much with the network so I suggest logging it using CoreData and then on resume/startup to send an HTTP post to a PHP page that logs it into your DB?
You might want to check out the HTML5 geolocation API. Also reading "Building iPhone Apps with HTML, CSS, and JavaScript" is recommended. I read the same book for Android and was very pleased. Building your app in HTML5/CSS/JS will also mean that it will probably work on other platforms.
I have been trying to have my iphone app create it's own springboard icons (like safari does for bookmarks) but i'm not sure how to do this. Googling gives me unrelevant information about this topic. Can anyone point me in the right direction? Thanks
This isn't possible using the official iPhone SDK.
You will only be able to achieve this using private/undocumented APIs and on a jailbroken iPhone.
Also if you do this you will not be able to distribute your app via the App Store, since Apple will reject it for using private APIs.
I have an idea to use the apps on my iphone as a list for a different way to launch the program. But I have no idea if I can see the apps in something I can display? Is this possible? If it is possible, can I launch the listed app from my app? What do I need to access to get this done?
There is no way using the official SDK to enumerate the list of applications the user has installed.
Unofficially, with a jailbroken phone you can check the contents of the applications folder.
It is true there is no specific way to do this with the normal SDK. However if specific apps you had used URL schemes you can invoke them programatically. Google maps, mail, safari, sms have it. Any application can choose to implement their own custom one. This obviously doesn't help with any random app but if you have specific apps your targeting you might be able to integrate that way.
I was wondering if I could access the iPhones Core Location framework over a website?
My goal is to build a webapp/website that the iPhone would browse to, then upload its current GPS location. This would be a simple site primary for friends/family so we could locate each other. I can have them manually enter lng/lat but its not the easiest thing to find. If the iPhone could display or upload this automatically it would be great.
I don't own a Mac yet (waiting for the new Mac Book Pro) but would like something a little more automatic right now. Once I have the mac I could download the SDK and build a better version later. For now a webapp version would be great if possible. Thanks.
Why not simply use W3C GeoLocation API available in mobile Safari? This will work on ipod touch as well (suburb precision).
It's literally 10 lines of code and the javascript will work without change on Firefox 3.5. Far easier than scrape some third party website.
http://www.instamapper.com/iphone
iPhone App store
While this may not directly answer your question, there are quite a few iPhone apps that already do this kind of thing with GPS. Instamapper is the first one I pulled up from the app store, but I'm sure you could find something to fit your needs.
I'm pretty sure you can't do what you want directly.
The best idea I can come up with is to "reuse" an iPhone app that records location and makes it accessible on the web. Take Twitter for example. If I'm not mistaken, Tapulous' app Twinkle will grab your location and post it to your Twitter.com user profile. Here's an example of what that looks like:
From your webapp, you could then scrape the user page for each person whose location you're interested in. It's a pain in the butt, but like I said, this is the best I could come up with.
Again, if you don't want to mess with Twitter, there may be other apps out there that do this as well, but I don't personally know of any. Good luck.
We built a really thin iphone client app that simply calls a predefined .js file on our site. Works like a charm.
See arisgames.org for the project.