An electronic device may collect statistics on a quantity of recharging times of the battery in at least one single charging process, and/or obtain a temperature of the battery in recharging. Then, the electronic device may lower a full charge threshold and a recharge threshold based on the…