Reads input in native code and passes it to the Java activity for remapping.