Roger Labbe's book and filterpy project were used as a reference.
To be as efficient as possible (without using native C++ code), this implementation of Kalman filter uses EJML in Procedural mode. All arrays and matrices are allocated only once during filter initialization.
The app is available on Google Play.