acessing to iphone camera data only with API - iphone

I would like to access in real time to the data of the camera to get the hue of several points in order to guide the user (inform him when is the best moment to take the picture).
The application will be probably available on the appstore and then I want to just use allowed API. I've seen a lot of similar topics, some of them telling this is possible but none of them showing a solution.
Do you have any idea for this?
Thanks in advance :)

You need the undocumented UIGetScreenImage() function; an Apple representative recently stated their approval of the use thereof in the iPhone developer forums.

Related

How to get signal strength from iphone and to publish the app in the App Store?

Is there any way to get the quality of the signal from an iphone? I know that i can get this data from CoreTelephony framework, but it is an private framework and Not permitted such frameworks in the app store.
Someone can help me?
Thanks for all.
Best regards
You cannot currently get access to this information via a public api. Apple provides some sample code for checking if there is an internet connection and if the device is on wifi/cellular amongst other things. This is available at:
https://developer.apple.com/library/ios/samplecode/Reachability/Introduction/Intro.html
You could also try something really hacky like taking a screenshot and doing some image analysis on the top left corner of the screen to determine how many bars there are, if you're really keen..?

Volume Hardware Button Input

I have asked this question before, but have not received any real answer. How do iPhone developers, such as the developer of the Camera+ app, detect when the volume buttons are pressed and how do they prevent the system volume change. Please do not just link to an old answer unless it uses a way that is currently App Store safe. If anyone knows, help is greatly appreciated. Thank you!
There is no App Store safe way to do it except to use the framework camera controls. When you use the standard controls, you get the volume controls for free. The reviewer may or may not let you go if you do it some other way, but officially you will be rejected unless you use the standard framework camera controls.
First off, becareful how you handle Hardware inputs, as you know if handle them incorrectly, you will get rejected from the app store
Secondly, read and learn Audio Session Programmming Guide this will help you understand how to handle hardware inputs, also here is the Audio Session Services Reference that will help you when it comes to programming the the listeners.
I can't give you code specific solution because you didnt elaborate where and when this is going to be used (in your app). Also where you handle the listener is up to you, so i have to leave it to you to figure out where to put your listener.
But a good resource is the apple developer library

Analytics library for iOS apps

I want to integrate analytics into my iOS app to collect statistics about my users.
So far I found these two services:
http://www.localytics.com
http://code.google.com/intl/de-DE/mobile/analytics/docs/iphone/
I want a library that's easy to implement. Are there any more out there and what is your experience? What can you recommend?
I've used Flurry in several apps. Quite happy with it. Once the initial setup is done, it's quite easy to log and record metrics about pretty much anything within your app.
You can try heatma.ps to get insides on how people iteract with your applications.
Check out this article, I think it's very useful:
http://www.apptamin.com/blog/app-analytics-tools/
I have found UXCam very useful. It has very easy integration steps and provides user and mobile data you need. It lets you watch playback videos of users using your app and has rule based recording and analytics to filter out unusual session.

Best options to integrate my application with the Nike+ features of the iPhone 4G

How can I integrate my application with the Nike+ features of the iPhone 4G. I want to access the data captured and send that to my own applications. There seems to be limited information available on this topic. Any help is greatly appreciated.
I actually created a PHP class that extracts data from the Nike+ service. It might be of use to you. You can find the download and documentation at http://nikeplusphp.org
Not sure how you would save authentication in your app, but this class would definitely give you access to literally everything Nike return back to their own apps and website. Well, everything I could find!
If you do have any issues with the class or anything is missing, please feel free to get in touch or contribute!

Is it possible to access data from the proximity-sensor of the iPhone surface?

When you hold the iPhone to your ear, it detects that there's something (proximity-sensor) and switches off the display.
is it possible to access this sensor in an iPhone app?
It is possible via undocumented System calls, this is how Google's voice search works on the iPhone to start listening when it is close to your ear (or so i'm told). The API isn't publicly exposed though so although google got the app on the store your app might be subject to more scrutiny.
Sorry I can't tell you exactly what the calls are.
I don't think so.
Rather, there aren't any published API's for it.
Google's voice search uses it, but that caused some fuss as they apparently used some unpublished functions.
http://www.iphonehacks.com/2008/11/iphone-app-news.html
EDIT:
To clarify, there are published API's allowing you to turn it on and off, but nothing that will allow you to detect when it has been triggered.
I was able to find this functionality in Apple's documentation here, however I haven't tried it yet.
The UIDevice instance also provides access to the proximity sensor state (described by the proximityState property). The proximity sensor detects whether the user is holding the device close to their face.