 |
 |
|
 |
09-04-2008, 11:16 AM
|
#1 (permalink)
|
|
New Member
Join Date: Aug 2008
Posts: 30
|
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.
|
|
|
09-04-2008, 12:33 PM
|
#2 (permalink)
|
|
Registered Member
Join Date: Sep 2008
Location: Woonsocket, RI
Age: 42
Posts: 42
|
Quote:
Originally Posted by ae6rt
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.
|
|
|
09-04-2008, 01:09 PM
|
#3 (permalink)
|
|
New Member
Join Date: Aug 2008
Posts: 30
|
Thanks. That's what I suspected. Too bad. Hopefully this will be part of the public API one day.
|
|
|
09-26-2009, 05:55 PM
|
#4 (permalink)
|
|
Registered Member
Join Date: Apr 2009
Posts: 11
|
I'm interested about this:
in the PhotoShare application, if the bluetooth is deactived, automatically is activated...
so... how did you think that PhotoShare works??
|
|
|
11-15-2009, 11:37 AM
|
#5 (permalink)
|
|
Registered Member
Join Date: Aug 2009
Posts: 123
|
Can you please tell me how to programatically turn on Bluetooth using the private api.
|
|
|
11-15-2009, 12:14 PM
|
#6 (permalink)
|
|
Former NeXTStep Developer
Join Date: Mar 2009
Posts: 997
|
Quote:
Originally Posted by johnathon
Can you please tell me how to programatically turn on Bluetooth using the private api.
|
See link in post #2 above.
joe
|
|
|
11-15-2009, 01:43 PM
|
#7 (permalink)
|
|
Registered Member
Join Date: Jul 2009
Posts: 410
|
Yep - the issue is private frameworks. Which means Apple will most definitely reject the app.
There are alternatives, however. The Jailbreak Community can always make use of apps like that. However, from what I've been seeing of late, the "Jailbreak Community" is dying off pretty fast, as a lot of the devs for it are either moving to the App Store, or simply charging obscene prices for once free apps. They either handle their records poorly, or simply don't care, and as a result many "buyers" of their apps have been completely screwed over. ZodTTD, I'm looking at you.
|
|
|
11-15-2009, 04:49 PM
|
#8 (permalink)
|
|
Registered Member
Join Date: Aug 2009
Posts: 123
|
Thanks for the link but I was wondering actually how to do it (frameworks to import, maybe even some code).
|
|
|
11-15-2009, 09:18 PM
|
#9 (permalink)
|
|
Shmoopi Gaming
Join Date: Jun 2009
Posts: 181
|
Quote:
Originally Posted by johnathon
Thanks for the link but I was wondering actually how to do it (frameworks to import, maybe even some code).
|
You're going to find a hard time finding that code here, I would suggest you try searching through some cydia apps source code such as Bossprefs or Customize. You can also try searching through the "System" commands that the iPhone utilizes. For example:
Code:
system("killall springboard");
|
|
|
11-16-2009, 11:44 AM
|
#10 (permalink)
|
|
Registered Member
Join Date: Aug 2009
Posts: 123
|
I found this but how do i use it. How do I refere to the bluetooth?
|
|
|
02-02-2010, 10:43 AM
|
#11 (permalink)
|
|
Registered Member
Join Date: Jan 2009
Location: Ontario, Canada
Posts: 47
|
Hey, did you get anywhere with this lately? I hope Apple releases some new APIs in OS 4.0.
|
|
|
02-03-2010, 12:11 PM
|
#12 (permalink)
|
|
Registered Member
Join Date: Aug 2009
Posts: 123
|
Quote:
Originally Posted by KZS
Hey, did you get anywhere with this lately? I hope Apple releases some new APIs in OS 4.0.
|
Yeah, I figured out how to toggle bluetooth
|
|
|
02-03-2010, 01:28 PM
|
#13 (permalink)
|
|
Registered Member
Join Date: Jan 2009
Location: Ontario, Canada
Posts: 47
|
Quote:
Originally Posted by johnathon
Yeah, I figured out how to toggle bluetooth
|
Awesome. Did you use the above references to figure it out? I haven't had a chance to look at them yet.
|
|
|
02-04-2010, 01:00 PM
|
#14 (permalink)
|
|
Registered Member
Join Date: Aug 2009
Posts: 123
|
Quote:
Originally Posted by KZS
Awesome. Did you use the above references to figure it out? I haven't had a chance to look at them yet.
|
i used the private framework called bluetooth manager. i found the .h in spotlight somehow
|
|
|
02-17-2010, 09:21 PM
|
#15 (permalink)
|
|
Registered Member
Join Date: Feb 2010
Posts: 1
|
I think its very easy to create an app which turn off/on iphone's bluetooth and wifi. However, a bit functional app should be developed which is used to organize the iphone functions through that app like Bluetooth toggling, wi-fi turn off/on etc. The app can also be interfaced with apple iphone accessories to respond accordingly e.g the app could be configured to open up ipod when-even head-pones are connected
Though iPhone is a smart-phone, yet it is not a complete smart-phone. There are many features in the phone that are not automatic but there may be programs that makes them automate but I haven`t found any for the automatic WI-FI turn on/off.
I have personally used bluetooth toggle installed from cydia, however never used any of the wifi application.
|
|
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
» Advertisements |
» Online Users: 646 |
| 56 members and 590 guests |
| 63wagon, Akshay Shah, albi, anandahdaa, beginer2007, Blitfast, boopyman, chaoz1337, crabFish, Craig2, dave1619, dre, dtm, fede, fredidf, Gravitation, Grinarn, harrytheshark, howcr, ianian, iVodka, jbro, JBTech, jxdigital, Kashiv, Kroupy, margalit, MarkC, mgilani, moe, mrarick, MrMattMac, nestle001, odysseus31173, p machine, panzeriti, PhotoShootoutApp, Pilly170, plus size cargo pant, psilocybin, RCummi86, Robyn, ronm3xico, Rudy, scalar, shuz, smasher, Somerset, Straathond, tomoan74, umarmara, vikinara, Vonswanko |
| Most users ever online was 779, 05-11-2009 at 09:55 AM. |
» Stats |
Members: 23,873
Threads: 38,649
Posts: 169,646
Top Poster: smasher (2,547)
|
| Welcome to our newest member, JBTech |
|