A computer-implemented electricity amount detection method comprising: acquiring, according to identity, ID, information of an application, ID information of each function device called by the application ; correspondingly acquiring, according to the ID information of each function device called by the application, a power consumption parameter generated when each function device is called ; determining a power consumption parameter generated when the application is running according to the power consumption parameter generated by each function device ; and outputting the power consumption parameter generated when the application is running ; characterized in that the method further comprises: correspondingly acquiring, according to the ID information of each function device called by the application, a maximum current value when each function device is called ; determining, according to the maximum current value consumed by each function device, a maximum current value consumed when the application is running ; and when it is judged that the maximum current value consumed when the application is running is higher than a preset current threshold value, issuing a first alarm message for prompting that a danger will be brought due to that the maximum current value consumed when the application is running is higher than the preset current threshold value . acquiring, according to identity, ID, information of an application, ID information of each function device called by the application ; correspondingly acquiring, according to the ID information of each function device called by the application, a power consumption parameter generated when each function device is called ; determining a power consumption parameter generated when the application is running according to the power consumption parameter generated by each function device ; and outputting the power consumption parameter generated when the application is running ; characterized in that the method further comprises: correspondingly acquiring, according to the ID information of each function device called by the application, a maximum current value when each function device is called ; determining, according to the maximum current value consumed by each function device, a maximum current value consumed when the application is running ; and when it is judged that the maximum current value consumed when the application is running is higher than a preset current threshold value, issuing a first alarm message for prompting that a danger will be brought due to that the maximum current value consumed when the application is running is higher than the preset current threshold value . correspondingly acquiring, according to the ID information of each function device called by the application, a maximum current value when each function device is called ; determining, according to the maximum current value consumed by each function device, a maximum current value consumed when the application is running ; and when it is judged that the maximum current value consumed when the application is running is higher than a preset current threshold value, issuing a first alarm message for prompting that a danger will be brought due to that the maximum current value consumed when the application is running is higher than the preset current threshold value . <EOS>