Home News Forum Social Networking Support Us Advertise

Spanish Lesson 1 ($1.99)

aWake!Gently ($1.99)

The Bird & The Snail - Knock Knock - Deluxe ($4.99)

Match-It Trains ($0.99)

Tangled ($0.99)

iFlatter ($0.99)

The 15 puzzle ($0.99)

Tap Forms Database ($8.99)

Higher or Lower Card Game (Hi Lo) ($0.99)

Red Pixel ($0.99)

Time-Shift Radio ($0.99)

Want your application advertised here? Only $10/week!

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-04-2008, 11:16 AM   #1 (permalink)
Member
 
Join Date: Aug 2008
Posts: 30
Rep Power: 0
ae6rt is on a distinguished road
Default Howto programmatically turn on/off WiFi and Bluetooth?

Is there a programmatic way to turn on and off the WiFi and Bluetooth networks on the iPhone? I'm looking for the same functionality that Settings/[General/Bluetooth],WiFi/OnOff provides.

Thanks.
ae6rt is offline   Reply With Quote
Old 09-04-2008, 12:33 PM   #2 (permalink)
Junior Member
 
Join Date: Sep 2008
Posts: 29
Rep Power: 0
mosttornbrain is on a distinguished road
Default

Quote:
Originally Posted by ae6rt View Post
Is there a programmatic way to turn on and off the WiFi and Bluetooth networks on the iPhone? I'm looking for the same functionality that Settings/[General/Bluetooth],WiFi/OnOff provides.
There isn't a way using the APIs provided by the SDK. It's trivial to do if you use private frameworks, but if you use private frameworks, you will be in violation of Apple's SDK license agreement.

I've already written such an app for my own purposes (toggling Bluetooth on and off), but for obvious reasons I can't distribute it. Details can be found here if you are interested:

Stormy Productions: The most useful iPhone app I can't release

Cheers.
mosttornbrain is offline   Reply With Quote
Old 09-04-2008, 01:09 PM   #3 (permalink)
Member
 
Join Date: Aug 2008
Posts: 30
Rep Power: 0
ae6rt is on a distinguished road
Default

Thanks. That's what I suspected. Too bad. Hopefully this will be part of the public API one day.
ae6rt is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


» Advertisements


» Online Users: 184
11 members and 173 guests
Alexman, atsd, BostonMerlin, comtek, lepetitapps, Neverever, P-atr1k, Raphy, Slecorne, Stitch, _mubashir
Most users ever online was 779, 05-11-2009 at 09:55 AM.
» Stats
Members: 8,172
Threads: 20,132
Posts: 89,979
Top Poster: RickMaddy (2,121)
Welcome to our newest member, juicysen
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:18 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0