Where an AC adapter is used to supply power to both an electronic device such as a notebook computer and a rechargeable battery, as where the computer is turned on while the battery is being recharged, the voltage at the output terminal of the AC adapter is detected and delivered to abattery charger that is used to supply a constant current to the battery.