Lamarque
05-07-2008, 02:21 AM
Hello!
I find it quite annoying that I have to enable and disable Wifi whenever reach/leave home/office. What I want is a small app running in the background the does the following:
-Enable Wifi when I plug my Diamond into my docking station
-Disable Wifi when
a) the wifi connection gets lost while the phone is not in the in the docking station
b) I unplug the phone out of the docking station and there is no connection to a wifi network at this moment.
So:
Is there already small app that does this?
If not: I dont think its hard to write the app of my own. Is there a forum somewhere in the web for "WM newbie-developers"?
This is all I want:
while(true) {
waitforSpecialEvent();
switch(eventType):
case connectedToPowerSupply:
setWifiEnabled(true);
break;
case disconnectedFromPowerSupply:
if (! connectedToWifi)
setWifiEnabled(false);
break;
case disconnectedFromWifi:
if (! connectedToPowerSupply)
setWifiEnabled(false);
break;
}
}
Not that hard, isnt it?
I find it quite annoying that I have to enable and disable Wifi whenever reach/leave home/office. What I want is a small app running in the background the does the following:
-Enable Wifi when I plug my Diamond into my docking station
-Disable Wifi when
a) the wifi connection gets lost while the phone is not in the in the docking station
b) I unplug the phone out of the docking station and there is no connection to a wifi network at this moment.
So:
Is there already small app that does this?
If not: I dont think its hard to write the app of my own. Is there a forum somewhere in the web for "WM newbie-developers"?
This is all I want:
while(true) {
waitforSpecialEvent();
switch(eventType):
case connectedToPowerSupply:
setWifiEnabled(true);
break;
case disconnectedFromPowerSupply:
if (! connectedToWifi)
setWifiEnabled(false);
break;
case disconnectedFromWifi:
if (! connectedToPowerSupply)
setWifiEnabled(false);
break;
}
}
Not that hard, isnt it?