-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi, i have a class called 'Wifi', with two methods, turnOn() and turnOff()
In the controller i have a class defined :
public Wifi myWifi = new Wifi(); ... myWifi.turnOn();
So , in the controller i turnOn() the wifi , but when the user close (without the button "close"), the wifi is turnOn forever xD , then i need to "detect" this situation and call the method turnOff(). I tried to use the java garbage collector (with finally) but dont work for me, also i tried yo implement desktopcleanup, but my problem is dont understand the implementation=(
The important is turnOff the wifi when the session is timeout, no matter when the user close/change the page.
Thanks
Asked: 2011-05-25 15:40:11 +0800
Seen: 203 times
Last updated: May 25 '11