see https://github.com/leapcode/bitmask_android/issues/56 as a first reference. relates also to #5384 (closed)