Android client production code

This function should throw exceptions - we catch them in C++ side.