Talk:How to detect internet disconnection from application using red key
From Nokia Developer Wiki
This article provides a good way to alert the user when a connection is active and the user tries to close the application by using red key. The code snippet provides method to detect the red key. After implementing this the developer can do any action say ask the user if he really wants to close the application.