Method and device for supplying power to electronic device and electronic device

The invention provides a method and a device for supplying power to an electronic device and the electronic device. The power supply method comprises the steps of supplying power to the electronic device by means of a battery through a first access; detecting electric parameters of the battery in the process of supplying power to the electronic device by means of the battery through the first access; judging whether the electric parameters meet first predetermined conditions and generating a first judgment result; and when the first judgment result shows that the electric parameters meet the first predetermined conditions, supplying power to the electronic device by means of the battery through a second access, wherein the first access is different from the second access. By means of the power supply method, capacity of the battery can be fully utilized, and service life of the battery can be effectively prolonged.