To record traffic, please refer to this answer http://stackoverflow.com/ques...
If you record the power, you can get and save the current power when you first enter the app, and then get it again when you exit to calculate the app's power usage. For the method of obtaining power, please refer to http://blog.csdn.net/uxyheave...
To record traffic, please refer to this answer http://stackoverflow.com/ques...
If you record the power, you can get and save the current power when you first enter the app, and then get it again when you exit to calculate the app's power usage. For the method of obtaining power, please refer to http://blog.csdn.net/uxyheave...