The app features a broadcast receiver, which is invoked whenever there is
a connection/disconnection to the phone.
The connection of power cord either from USB/AC is identified and stored
into the database along with the timestamp.