My Blog

Launch Battery Historian 2.1 on Mac

Android have great tool for tracking battery drain. It is Battery Historian.

Here is simple steps how to get it on your Mac:

  1. Install Docker
  2. Run the next commands in Terminal
  3. Open your http://localhost:9999

You will have Battery Historian ready for use:


How to prevent screen captuting in Android

Prevent screen capturing is way for saving your content.

Android SDK have special flag for it.

Just declare it in your Activity like this:

And user will see next message when try make screenshot: