Updated Android implementation for latest Mallet Engine.