Android Question How to write an app to consume power (to test battery residual minimum time) ?

amorosik

Expert
Licensed User
I would like to make an app that shows a single form with the current battery charge value, and the percentage of CPU usage, and performs operations to discharge the battery, such as a maximum CPU usage
And so the question is: what code to use to display battery charge, display CPU usage percentage, push CPU usage to the maximum?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…