Add a new "queryConfig" native android function, so that the Java code can check
config options like rotation lock (config is implemented on the C++ side).