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:

screenshot-2016-12-06-13-26-09

How to prevent screen captuting in Android

Prevent screen capturing is way for saving your content.

Android SDK have special flag for it.
https://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_SECURE

Just declare it in your Activity like this:

And user will see next message when try make screenshot:

2016-11-25-11-02-43