I'm involved in yet another application . this time, it's about developing a J2ME application.
the mobile the application will run on is going to be connected to an electrical socket .
and whenever the mobile is unplugged (interruption of electrical energy supply in the battery), the application should detect it and do some custom actions such as send an sms or something else.
so, i want to know what piece of code can I use to detect energy supply interuption in a J2ME app ?