开发者

Bluetooth API for iPhone

I'm tired of having to go through a lot of pointless menus on the iPhone just to enable / disable bluetooth and would like to make myself an app that basically just enables / disables the bluetooth on my ph开发者_C百科one. I have a developer account with Apple, so deployment wouldn't be a problem (can do ad-hoc deploys).

I've been searching, but couldn't find any APIs that let me do this. Does anyone know of any? Can someone open source the code if they've built this for personal use?


To my knowledge, this requires use of private APIs. Unless you wan't to reinvent the wheel, I recommend jailbreaking your phone. I have sucessfully done this using GreenPois0n. When done, you get access to Cydia - an alternative App Store for all things Apple won't approve.

Download SBSettings from Cydia. Now you can just swipe the status bar to quickly enable/disable bluetooth, 3g, airplane mode, wifi and more:

Bluetooth API for iPhone

Some other tips and reasons you should jailbreak your phone:

  • By downloading the plugins "Push" and "Push" mail to SBSettings, and by purchasing SBSchedule from Cydia, you can have profiles on your phone. I created two sets. "Push on" and "Push off". These can be selected by holding the on/off button. I have also set SBSettings to automatically switch to "Push off" at 23:00 and "Push on" at 07:00 to avoid getting disturbed by push notifications at night.
  • Purchase LockInfo from Cydia. See more information and screenshots here. This gives you "widget" support on your lock screen.
  • As a developer, I have also purchased "Display Out" which enables you to use the iPads VGA adapter on your iPhone (or iPad) to mirror the screens onto a projector (Steve Jobs mode). "Display Recorder" is a screen recorder enabling you to record instruction videos for your apps.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜