This example assumes that you have an Android based device with a minimum of Android 2.2. It is important to note that there are some
forum posts relating to software bugs in Android's WPA implementation. These bugs sometimes manifest when Android devices renew their network connections automatically.
The only fix for this currently is to disable and then re-enable your wireless connection to initiate a full renegotiation.