Method and device for detecting operating current and residual power of electronic terminal

The invention discloses a method and device for detecting the operating current and residual power of an electronic terminal. The method comprises the steps of acquiring a resistance value of a detecting resistor and voltage values at two sides of the detecting resistor, wherein the detecting resistor is a variable resistor which is connected in a discharging circuit of a power supply of the electronic terminal in series; and calculating an operating current value and a residual power value of the electronic terminal according to a preset current calculating algorithm and a power calculating algorithm based on a voltage difference value and the resistance value, wherein the voltage difference value is calculated according to the voltage values at two sides of the detecting resistor. The method is used for solving a technical problem existing in the prior art that measurement for the battery capacity is great in error and low in precision.