More of a snippet this time than a tutorial really, over in the MobileOrchard iPhone 3.0 series; how you can now be as cool as Google.
When Google released their iPhone app last year it was accompanied with a bit of controversy:
Their app used an undocumented API to detect when the phone had been placed next to the speaker’s ear.
In iPhone 3.0 SDK this API is usable by any app. This short article demonstrates how to use it:
Actually, it hardly needs a demonstration — all that there is to do to get your monitoring going is set [UIDevice currentDevice].proximityMonitoringEnabled = YES; and listen for the notification.
But hey, if you still had the impression from the brouhaha over Google getting to be special that normal developers weren’t allowed to do the same thing — now you know how you can too!

Yeah, there’s a whole set of things that don’t qualify for full tutorials. The battery API comes next. But they’re still worth covering. Also, NSNotificationCenter is something many iPhone devs never use.